mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
Robustness : Always return valid displayModelOffset
This commit is contained in:
1 parent
fda735d109
commit
49ef8c6f55
1 file changed
+7
-1
@@ -474,7 +474,13 @@ void RimGeoMechCase::setApplyTimeFilter(bool applyTimeFilter)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Vec3d RimGeoMechCase::displayModelOffset() const
|
||||
{
|
||||
return this->allCellsBoundingBox().min();
|
||||
auto bb = this->allCellsBoundingBox();
|
||||
if (bb.isValid())
|
||||
{
|
||||
return this->allCellsBoundingBox().min();
|
||||
}
|
||||
|
||||
return cvf::Vec3d::ZERO;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user