From 14b740c8abddd0588a6b40d1156490d14e09d88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Thu, 17 Sep 2015 10:11:06 +0200 Subject: [PATCH] Fixed crash when opening project file with a hidden well log plot --- ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp index b3458f6d0c..eb5dc97f70 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp @@ -308,13 +308,16 @@ void RimWellLogPlot::loadDataAndUpdate() //-------------------------------------------------------------------------------------------------- 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(); - updateAxisRanges(); + updateAvailableDepthRange(); + updateAxisRanges(); + } }