#2331 Update Intersection View List when copying and deleting views

This commit is contained in:
Jacob Støren
2018-01-29 12:41:55 +01:00
parent f931b92341
commit 287992df91
2 changed files with 11 additions and 0 deletions

View File

@@ -55,6 +55,7 @@
#include "cafPdmReferenceHelper.h"
#include "cafPdmUiFieldHandle.h"
#include "cafSelectionManager.h"
#include "Rim2dIntersectionViewCollection.h"
//--------------------------------------------------------------------------------------------------
@@ -132,6 +133,14 @@ void RicDeleteItemExec::redo()
crossSectionColl->syncronize2dIntersectionViews();
view->scheduleCreateDisplayModelAndRedraw();
}
else
{
RimCase* parentCase = dynamic_cast<RimCase*>(parentObj);
if ( parentCase ) // A view was deleted. Need to update the list of intersection views
{
parentCase->intersectionViewCollection()->syncFromExistingIntersections(true);
}
}
// SimWell Fractures
RimSimWellInView* simWell;