Fixed crash when opening project file with a hidden well log plot

This commit is contained in:
Jacob Støren 2015-09-17 10:11:06 +02:00
parent 7a6c7149e1
commit 14b740c8ab

View File

@ -308,13 +308,16 @@ void RimWellLogPlot::loadDataAndUpdate()
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RimWellLogPlot::updateTraces() void RimWellLogPlot::updateTraces()
{ {
for (size_t tIdx = 0; tIdx < traces.size(); ++tIdx) if (m_showWindow)
{ {
traces[tIdx]->loadDataAndUpdate(); for (size_t tIdx = 0; tIdx < traces.size(); ++tIdx)
} {
traces[tIdx]->loadDataAndUpdate();
}
updateAvailableDepthRange(); updateAvailableDepthRange();
updateAxisRanges(); updateAxisRanges();
}
} }