From a62eb02e8ae073d731cbe5b7ba38331c0fd432b9 Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 14 Oct 2008 13:20:17 +0000 Subject: [PATCH] EQt4 porting. Error after Compute of mesh if Create mesh dialog box is opened. --- src/SUIT/SUIT_Study.cxx | 7 +++++-- src/SUIT/SUIT_Study.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SUIT/SUIT_Study.cxx b/src/SUIT/SUIT_Study.cxx index fec0b6a4f..ea1262d41 100755 --- a/src/SUIT/SUIT_Study.cxx +++ b/src/SUIT/SUIT_Study.cxx @@ -425,9 +425,12 @@ void SUIT_Study::stop( SUIT_Operation* theOp ) // get last operation which can be resumed SUIT_Operation* aResultOp = 0; - for ( Operations::iterator it = myOperations.end(); it != myOperations.begin(); --it ) + + QListIterator it (myOperations); + it.toBack(); + while( it.hasPrevious() ) { - SUIT_Operation* anOp = *it; + SUIT_Operation* anOp = it.previous(); if ( anOp && anOp != theOp && blockingOperation( anOp ) == 0 ) { aResultOp = anOp; diff --git a/src/SUIT/SUIT_Study.h b/src/SUIT/SUIT_Study.h index 4128bd7fe..603d9d9f5 100755 --- a/src/SUIT/SUIT_Study.h +++ b/src/SUIT/SUIT_Study.h @@ -23,6 +23,7 @@ #include #include +#include class SUIT_DataObject; class SUIT_Application; -- 2.39.2