mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#504) Do not use autoscale for x-axis - simplified track/plot update code
This commit is contained in:
@@ -287,18 +287,9 @@ void RimWellLogPlotCurve::updateOptionSensitivity()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlotCurve::updateTrackAndPlotFromCurveData()
|
||||
{
|
||||
RimWellLogPlotTrack* plotTrack;
|
||||
firstAnchestorOrThisOfType(plotTrack);
|
||||
|
||||
if (plotTrack)
|
||||
{
|
||||
plotTrack->updateXAxisRangeFromCurves();
|
||||
}
|
||||
|
||||
RimWellLogPlot* wellLogPlot;
|
||||
firstAnchestorOrThisOfType(wellLogPlot);
|
||||
|
||||
if (wellLogPlot && plotTrack)
|
||||
if (wellLogPlot)
|
||||
{
|
||||
bool setDepthRange = !wellLogPlot->hasAvailableDepthRange();
|
||||
wellLogPlot->updateAvailableDepthRange();
|
||||
@@ -307,9 +298,12 @@ void RimWellLogPlotCurve::updateTrackAndPlotFromCurveData()
|
||||
{
|
||||
wellLogPlot->setVisibleDepthRangeFromContents();
|
||||
}
|
||||
else if (plotTrack->curveCount() == 1)
|
||||
{
|
||||
plotTrack->updateAxisRangesAndReplot();
|
||||
}
|
||||
}
|
||||
|
||||
RimWellLogPlotTrack* plotTrack;
|
||||
firstAnchestorOrThisOfType(plotTrack);
|
||||
if (plotTrack)
|
||||
{
|
||||
plotTrack->updateAxisRangesAndReplot();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user