mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Robustness : Always return valid displayModelOffset
This commit is contained in:
parent
fda735d109
commit
49ef8c6f55
@ -473,10 +473,16 @@ void RimGeoMechCase::setApplyTimeFilter(bool applyTimeFilter)
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Vec3d RimGeoMechCase::displayModelOffset() const
|
||||
{
|
||||
auto bb = this->allCellsBoundingBox();
|
||||
if (bb.isValid())
|
||||
{
|
||||
return this->allCellsBoundingBox().min();
|
||||
}
|
||||
|
||||
return cvf::Vec3d::ZERO;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user