mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Janitor: Check if bounding box is valid before use
This commit is contained in:
1 parent
57cd46c4e2
commit
73551b0ec8
1 file changed
+2
-1
@@ -767,10 +767,11 @@ caf::AppEnum<RiaDefines::EclipseUnitSystem> RimWellPathCollection::findUnitSyste
|
||||
wellPathBoundingBox.add( wellPathPoint );
|
||||
}
|
||||
|
||||
if ( caseBoundingBox.intersects( wellPathBoundingBox ) )
|
||||
if ( wellPathBoundingBox.isValid() && caseBoundingBox.isValid() && caseBoundingBox.intersects( wellPathBoundingBox ) )
|
||||
{
|
||||
return eclipseCaseData->unitsType();
|
||||
}
|
||||
|
||||
return RiaDefines::EclipseUnitSystem::UNITS_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user