(#425) Resetting X-axis range to default when all curves are removed

This commit is contained in:
Pål Hagen
2015-09-07 15:36:50 +02:00
parent f16b2af600
commit 98efbf863f
3 changed files with 49 additions and 3 deletions

View File

@@ -34,6 +34,7 @@
#include "RimWellPathCollection.h"
#include "RimView.h"
#include "RimWellLogPlot.h"
#include "RimWellLogPlotTrace.h"
#include "RimWellLogPlotCollection.h"
#include "RimProject.h"
@@ -115,6 +116,13 @@ void RicDeleteItemExec::redo()
wellLogPlot->updateAvailableDepthRange();
}
RimWellLogPlotTrace* wellLogPlotTrace;
parentObj->firstAnchestorOrThisOfType(wellLogPlotTrace);
if (wellLogPlotTrace)
{
wellLogPlotTrace->updateAxisRanges();
}
RimWellLogPlotCollection* wellLogPlotCollection = NULL;
parentObj->firstAnchestorOrThisOfType(wellLogPlotCollection);
if (wellLogPlotCollection)