#2017 Select Plot on Add To New Plot on RimWellLogFileChannel

This commit is contained in:
Rebecca Cox 2017-10-18 13:22:20 +02:00
parent 9d5facdbd9
commit 74ab333c49

View File

@ -103,17 +103,13 @@ void RicAddWellLogToPlotFeature::onActionTriggered(bool isChecked)
curve->loadDataAndUpdate(true);
}
}
plot->calculateAvailableDepthRange();
plot->updateDepthZoom();
plotTrack->viewer()->replot();
// Make sure the summary plot window is created and visible
RiuMainPlotWindow* plotwindow = RiaApplication::instance()->getOrCreateAndShowMainPlotWindow();
RiaApplication::instance()->project()->updateConnectedEditors();
plotwindow->selectAsCurrentItem(selection.back());
RiaApplication::instance()->getOrCreateAndShowMainPlotWindow()->selectAsCurrentItem(plot);
RiaApplication::instance()->getOrCreateAndShowMainPlotWindow()->setExpanded(plotTrack, true);
}
//--------------------------------------------------------------------------------------------------