#846 Do not force display of plot main window from well log plots and track

This commit is contained in:
Magne Sjaastad 2016-10-05 11:55:54 +02:00
parent d719491a33
commit cbdc313cf3
2 changed files with 3 additions and 4 deletions

View File

@ -101,7 +101,8 @@ RimWellLogPlot::~RimWellLogPlot()
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RimWellLogPlot::updateViewerWidget() void RimWellLogPlot::updateViewerWidget()
{ {
RiuMainPlotWindow* mainPlotWindow = RiaApplication::instance()->getOrCreateAndShowMainPlotWindow(); RiuMainPlotWindow* mainPlotWindow = RiaApplication::instance()->mainPlotWindow();
if (!mainPlotWindow) return;
if (m_showWindow()) if (m_showWindow())
{ {

View File

@ -236,11 +236,9 @@ void RimWellLogTrack::availableDepthRange(double* minimumDepth, double* maximumD
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RimWellLogTrack::loadDataAndUpdate() void RimWellLogTrack::loadDataAndUpdate()
{ {
CVF_ASSERT(m_wellLogTrackPlotWidget);
RimWellLogPlot* wellLogPlot; RimWellLogPlot* wellLogPlot;
firstAncestorOrThisOfType(wellLogPlot); firstAncestorOrThisOfType(wellLogPlot);
if (wellLogPlot) if (wellLogPlot && m_wellLogTrackPlotWidget)
{ {
m_wellLogTrackPlotWidget->setDepthTitle(wellLogPlot->depthPlotTitle()); m_wellLogTrackPlotWidget->setDepthTitle(wellLogPlot->depthPlotTitle());
} }