mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-20 12:59:46 -06:00
(#504) Move common code to base class
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user