(#504) Move common code to base class

This commit is contained in:
Magne Sjaastad committed 2015-09-22 11:55:21 +02:00
1 parent f49c7fc983
commit 7ded798055
3 files changed
+40 -26

No files matched your search

@@ -217,31 +217,7 @@ void RimWellLogExtractionCurve::updatePlotData()
if (filteredValues.size())
{
RimWellLogPlotTrack* plotTrack;
firstAnchestorOrThisOfType(plotTrack);
if (plotTrack)
{
plotTrack->updateXAxisRangeFromCurves();
}
RimWellLogPlot* wellLogPlot;
firstAnchestorOrThisOfType(wellLogPlot);
if (wellLogPlot && plotTrack)
{
bool setDepthRange = !wellLogPlot->hasAvailableDepthRange();
wellLogPlot->updateAvailableDepthRange();
if (setDepthRange)
{
wellLogPlot->setVisibleDepthRangeFromContents();
}
else if (plotTrack->curveCount() == 1)
{
plotTrack->updateAxisRangesAndReplot();
}
}
updateTrackAndPlotFromCurveData();
}
m_plot->replot();