mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-07 14:55:32 -06:00
Release 2023.06
This commit is contained in:
1 parent
a7108f0a09
commit
77bf792b1a
1390 files changed
+66974
-11511
No files matched your search
@@ -83,12 +83,11 @@ RimAnnotationCollectionBase* RicCreateTextAnnotationFeature::annotationCollectio
|
||||
auto selColls = caf::selectedObjectsByTypeStrict<RimAnnotationCollectionBase*>();
|
||||
if ( selColls.size() == 1 ) return selColls.front();
|
||||
|
||||
RimAnnotationCollectionBase* coll = nullptr;
|
||||
auto selGroupColl = caf::selectedObjectsByTypeStrict<RimAnnotationGroupCollection*>();
|
||||
auto selGroupColl = caf::selectedObjectsByTypeStrict<RimAnnotationGroupCollection*>();
|
||||
if ( selGroupColl.size() == 1 )
|
||||
{
|
||||
selGroupColl.front()->firstAncestorOrThisOfType( coll );
|
||||
return selGroupColl.front()->firstAncestorOrThisOfType<RimAnnotationCollectionBase>();
|
||||
}
|
||||
|
||||
return coll;
|
||||
return nullptr;
|
||||
}
|
||||
Reference in new issue
Block a user