mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#538) Make sure curve data is populated before used
This commit is contained in:
parent
ac2a28f139
commit
57b0e7b18d
@ -68,14 +68,15 @@ void RicNewWellLogCurveExtractionFeature::onActionTriggered(bool isChecked)
|
||||
RimWellLogTrack* wellLogPlotTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack();
|
||||
RimWellLogExtractionCurve* plotCurve = addCurve(wellLogPlotTrack, RiaApplication::instance()->activeReservoirView(), wellPath);
|
||||
|
||||
plotCurve->updatePlotData();
|
||||
|
||||
RimWellLogPlot* plot = NULL;
|
||||
wellLogPlotTrack->firstAnchestorOrThisOfType(plot);
|
||||
if (plot)
|
||||
if (plot && plotCurve->curveData())
|
||||
{
|
||||
plot->setDepthUnit(plotCurve->curveData()->depthUnit());
|
||||
}
|
||||
|
||||
plotCurve->updatePlotData();
|
||||
|
||||
plotCurve->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user