mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Ensemble Fracture Statistics: hide plot update behind USE_QTCHARTS (#7998)
This commit is contained in:
parent
33ad42d694
commit
cf502b7e93
@ -33,7 +33,9 @@
|
||||
#include "RigStatisticsMath.h"
|
||||
#include "RigStimPlanFractureDefinition.h"
|
||||
|
||||
#ifdef USE_QTCHARTS
|
||||
#include "RimEnsembleFractureStatisticsPlot.h"
|
||||
#endif
|
||||
#include "RimFractureTemplateCollection.h"
|
||||
#include "RimHistogramCalculator.h"
|
||||
#include "RimProject.h"
|
||||
@ -296,6 +298,7 @@ void RimEnsembleFractureStatistics::fieldChangedByUi( const caf::PdmFieldHandle*
|
||||
{
|
||||
loadAndUpdateData();
|
||||
|
||||
#ifdef USE_QTCHARTS
|
||||
// Update referring plots
|
||||
std::vector<caf::PdmObjectHandle*> referringObjects;
|
||||
this->objectsWithReferringPtrFields( referringObjects );
|
||||
@ -304,6 +307,7 @@ void RimEnsembleFractureStatistics::fieldChangedByUi( const caf::PdmFieldHandle*
|
||||
auto plot = dynamic_cast<RimEnsembleFractureStatisticsPlot*>( obj );
|
||||
if ( plot ) plot->loadDataAndUpdate();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user