mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5137 load curve data after creating new well log curves
This commit is contained in:
parent
d5c3c3f9e8
commit
76d7f526ba
@ -19,6 +19,7 @@
|
||||
#include "RicWellLogTools.h"
|
||||
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RigWellLogCurveData.h"
|
||||
|
||||
#include "Rim3dView.h"
|
||||
#include "RimCase.h"
|
||||
@ -274,7 +275,16 @@ ExtractionCurveType* RicWellLogTools::addExtractionCurve( RimWellLogTrack*
|
||||
|
||||
plotTrack->addCurve( curve );
|
||||
|
||||
if ( plot && curve->curveData() )
|
||||
{
|
||||
plot->setDepthUnit( curve->curveData()->depthUnit() );
|
||||
}
|
||||
|
||||
curve->loadDataAndUpdate( true );
|
||||
|
||||
curve->updateConnectedEditors();
|
||||
plotTrack->updateConnectedEditors();
|
||||
plot->updateConnectedEditors();
|
||||
|
||||
RiaApplication::instance()->project()->updateConnectedEditors();
|
||||
RiaGuiApplication::instance()->getOrCreateMainPlotWindow();
|
||||
|
@ -123,16 +123,6 @@ void RicNewWellLogCurveExtractionFeature::onActionTriggered( bool isChecked )
|
||||
simWell,
|
||||
branchIndex,
|
||||
useBranchDetection );
|
||||
|
||||
plotCurve->loadDataAndUpdate( true );
|
||||
|
||||
newWellLogPlotTrack->firstAncestorOrThisOfType( wellLogPlot );
|
||||
if ( wellLogPlot && plotCurve->curveData() )
|
||||
{
|
||||
wellLogPlot->setDepthUnit( plotCurve->curveData()->depthUnit() );
|
||||
}
|
||||
|
||||
plotCurve->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
|
Loading…
Reference in New Issue
Block a user