From 9223cf7080300547c439ec274c2a8d29ad3d5d19 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 28 Mar 2013 11:33:04 +0000 Subject: [PATCH] trying to fix crash when removing views while merging a file --- Common/OpenFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp index 4e4d63ef01..eee5a309ab 100644 --- a/Common/OpenFile.cpp +++ b/Common/OpenFile.cpp @@ -543,7 +543,7 @@ int MergePostProcessingFile(const std::string &fileName, bool showLastStep, PView::list[i]->getOptions()->visible = 0; } } - else if(n != PView::list.size()){ + else if(n < PView::list.size()){ // if we created new views, assume we only want to see those (and the // onelab X-Y graphs) for(unsigned int i = 0; i < n; i++){ -- GitLab