#2129 Rft/Plt plot: Show formations on default, and not always

This commit is contained in:
Rebecca Cox
2017-11-13 08:56:22 +01:00
parent a4484579e2
commit da7c817023
4 changed files with 22 additions and 7 deletions

View File

@@ -128,6 +128,7 @@ RimWellPltPlot::RimWellPltPlot()
this->setAsPlotMdiWindow();
m_doInitAfterLoad = false;
m_isOnLoad = true;
}
//--------------------------------------------------------------------------------------------------
@@ -1256,11 +1257,6 @@ void RimWellPltPlot::initAfterLoad()
}
}
m_selectedSources = std::vector<RifWellRftAddress>(selectedSources.begin(), selectedSources.end());
if( m_wellLogPlot->trackCount() > 0);
{
m_wellLogPlot->trackByIndex(0)->setShowFormations(true);
}
}
//--------------------------------------------------------------------------------------------------
@@ -1444,6 +1440,15 @@ void RimWellPltPlot::onLoadDataAndUpdate()
m_doInitAfterLoad = false;
}
if (m_isOnLoad)
{
if (m_wellLogPlot->trackCount() > 0)
{
m_wellLogPlot->trackByIndex(0)->setShowFormations(true);
}
m_isOnLoad = false;
}
updateMdiWindowVisibility();
updateFormationsOnPlot();
syncCurvesFromUiSelection();