From ea00f5eb17e1ac233775c1ef47afa8eebcc5ccfa Mon Sep 17 00:00:00 2001 From: mpa Date: Tue, 26 Mar 2013 13:56:06 +0000 Subject: [PATCH] IPAL0051787: TC7.2.0: Impossible to create a sub-mesh which already exists --- src/SUIT/SUIT_Study.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SUIT/SUIT_Study.cxx b/src/SUIT/SUIT_Study.cxx index d365cceff..73c1ae2a2 100755 --- a/src/SUIT/SUIT_Study.cxx +++ b/src/SUIT/SUIT_Study.cxx @@ -165,8 +165,10 @@ bool SUIT_Study::saveDocument() void SUIT_Study::abortAllOperations() { myBlockChangeState = true; - for ( Operations::iterator it = myOperations.begin(); it != myOperations.end(); ++it ) + while ( !myOperations.isEmpty() ) { + Operations::iterator it = myOperations.begin(); (*it)->abort(); + } myBlockChangeState = false; myOperations.clear(); } -- 2.39.2