mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 18:02:12 -05:00
Polygon updates (#11298)
* Make menus similar for polygon and polygonInView * Crash fix: Iterator might be invalidated by erase, reorder operations. * Update pick editor after reload * Do not enable edit if polygon is read only * Make sure filter and intersection geometry is updated after a reload * Make sure other pick editors are updated when polygon in view is changed
This commit is contained in:
1 parent
853d68df8b
commit
2001c94a39
10 files changed
+53
-14
No files matched your search
@@ -123,6 +123,14 @@ void RimPolygonInViewCollection::fieldChangedByUi( const caf::PdmFieldHandle* ch
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPolygonInViewCollection::appendMenuItems( caf::CmdFeatureMenuBuilder& menuBuilder ) const
|
||||
{
|
||||
RimPolygonCollection::appendPolygonMenuItems( menuBuilder );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -222,8 +230,8 @@ void RimPolygonInViewCollection::syncPolygonsWithView()
|
||||
if ( it != existingPolygonsInView.end() )
|
||||
{
|
||||
newPolygonsInView.push_back( *it );
|
||||
existingPolygonsInView.erase( it );
|
||||
( *it )->updateTargetsFromPolygon();
|
||||
existingPolygonsInView.erase( it );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user