(#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:
Pål Hagen
2015-09-04 14:14:56 +02:00
parent 94095a16f0
commit a1d95f2b8a
4 changed files with 56 additions and 32 deletions

View File

@@ -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);