diff --git a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInViewCollection.cpp b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInViewCollection.cpp index d964417218..5e54469ab5 100644 --- a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInViewCollection.cpp +++ b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInViewCollection.cpp @@ -222,8 +222,8 @@ void RimPolygonInViewCollection::syncPolygonsWithView() if ( it != existingPolygonsInView.end() ) { newPolygonsInView.push_back( *it ); - existingPolygonsInView.erase( it ); ( *it )->updateTargetsFromPolygon(); + existingPolygonsInView.erase( it ); } else {