#5001 Update plots on changes in RimWellMeasurement.

This commit is contained in:
Kristian Bendiksen 2019-11-19 20:38:17 +01:00
parent 18c2350bdf
commit ea534cace6

View File

@ -17,6 +17,8 @@
/////////////////////////////////////////////////////////////////////////////////
#include "RimWellMeasurement.h"
#include "RimProject.h"
#include "RimWellMeasurementCollection.h"
#include "RimWellPath.h"
CAF_PDM_SOURCE_INIT( RimWellMeasurement, "WellMeasurement" );
@ -161,6 +163,13 @@ void RimWellMeasurement::fieldChangedByUi( const caf::PdmFieldHandle* changedFie
const QVariant& oldValue,
const QVariant& newValue )
{
RimProject* proj;
this->firstAncestorOrThisOfTypeAsserted( proj );
proj->scheduleCreateDisplayModelAndRedrawAllViews();
RimWellMeasurementCollection* wellMeasurementCollection;
this->firstAncestorOrThisOfTypeAsserted( wellMeasurementCollection );
wellMeasurementCollection->updateAllReferringTracks();
}
//--------------------------------------------------------------------------------------------------