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
@ -474,7 +474,13 @@ void RimGeoMechCase::setApplyTimeFilter(bool applyTimeFilter)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
cvf::Vec3d RimGeoMechCase::displayModelOffset() const
|
cvf::Vec3d RimGeoMechCase::displayModelOffset() const
|
||||||
{
|
{
|
||||||
return this->allCellsBoundingBox().min();
|
auto bb = this->allCellsBoundingBox();
|
||||||
|
if (bb.isValid())
|
||||||
|
{
|
||||||
|
return this->allCellsBoundingBox().min();
|
||||||
|
}
|
||||||
|
|
||||||
|
return cvf::Vec3d::ZERO;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user