#5137 load curve data after creating new well log curves

This commit is contained in:
Gaute Lindkvist 2019-11-29 15:22:13 +01:00
parent d5c3c3f9e8
commit 76d7f526ba
2 changed files with 10 additions and 10 deletions

View File

@ -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();

View File

@ -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();