mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Release 2023.06
This commit is contained in:
@@ -145,15 +145,13 @@ RimIntersectionCollection* RicPasteIntersectionsFeature::findIntersectionCollect
|
||||
RimExtrudedCurveIntersection* intersection = dynamic_cast<RimExtrudedCurveIntersection*>( objectHandle );
|
||||
if ( intersection )
|
||||
{
|
||||
intersection->firstAncestorOrThisOfType( intersectionCollection );
|
||||
return intersectionCollection;
|
||||
return intersection->firstAncestorOrThisOfType<RimIntersectionCollection>();
|
||||
}
|
||||
|
||||
RimBoxIntersection* intersectionBox = dynamic_cast<RimBoxIntersection*>( objectHandle );
|
||||
if ( intersectionBox )
|
||||
{
|
||||
intersectionBox->firstAncestorOrThisOfType( intersectionCollection );
|
||||
return intersectionCollection;
|
||||
return intersectionBox->firstAncestorOrThisOfType<RimIntersectionCollection>();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user