mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8084 StimPlan Model: Dangling annotations when changing MD
This commit is contained in:
@@ -73,6 +73,14 @@ void RimAnnotationCollectionBase::addAnnotation( RimTextAnnotation* annotation )
|
||||
updateViewAnnotationCollections();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimAnnotationCollectionBase::removeAnnotation( RimTextAnnotation* annotation )
|
||||
{
|
||||
m_textAnnotations->removeAnnotation( annotation );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -44,6 +44,7 @@ public:
|
||||
bool isActive() const;
|
||||
|
||||
void addAnnotation( RimTextAnnotation* annotation );
|
||||
void removeAnnotation( RimTextAnnotation* annotation );
|
||||
|
||||
std::vector<RimTextAnnotation*> textAnnotations() const;
|
||||
|
||||
|
||||
@@ -90,6 +90,14 @@ void RimAnnotationGroupCollection::addAnnotation( caf::PdmObject* annotation )
|
||||
m_annotations.push_back( annotation );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimAnnotationGroupCollection::removeAnnotation( caf::PdmObject* annotation )
|
||||
{
|
||||
m_annotations.removeChildObject( annotation );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -52,6 +52,7 @@ public:
|
||||
bool isVisible() const;
|
||||
|
||||
void addAnnotation( caf::PdmObject* annotation );
|
||||
void removeAnnotation( caf::PdmObject* annotation );
|
||||
std::vector<caf::PdmObject*> annotations() const;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user