#5019 Fix crash when case is not set in Separate intersection Result

This commit is contained in:
Jacob Støren 2019-11-25 15:27:25 +01:00
parent 919f035a48
commit baedf02ba9

View File

@ -168,10 +168,12 @@ RimCase* Rim2dIntersectionView::ownerCase() const
{ {
rimCase = sepInterResultDef->activeCase(); rimCase = sepInterResultDef->activeCase();
} }
else
if ( !rimCase )
{ {
this->firstAncestorOrThisOfTypeAsserted( rimCase ); this->firstAncestorOrThisOfTypeAsserted( rimCase );
} }
return rimCase; return rimCase;
} }