mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Reset the zoom to show the entire depth range only when the first curve is added
Additional additions or changed parameters (by the user) will not change the visible depth settings. Did some code cleanup.
This commit is contained in:
@@ -184,9 +184,10 @@ void RimWellLogExtractionCurve::updatePlotData()
|
||||
|
||||
if (wellLogPlot)
|
||||
{
|
||||
bool setDepthRange = !wellLogPlot->hasAvailableDepthRange();
|
||||
wellLogPlot->updateAvailableDepthRange();
|
||||
|
||||
if (wellLogPlot->traceCount() == 1)
|
||||
if (setDepthRange && wellLogPlot->traceCount() == 1)
|
||||
{
|
||||
RimWellLogPlotTrace* plotTrace;
|
||||
firstAnchestorOrThisOfType(plotTrace);
|
||||
|
||||
Reference in New Issue
Block a user