]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug IPAL19475 - QT4 porting: exception on display of geometry creating a mesh
authorouv <ouv@opencascade.com>
Tue, 8 Apr 2008 08:39:39 +0000 (08:39 +0000)
committerouv <ouv@opencascade.com>
Tue, 8 Apr 2008 08:39:39 +0000 (08:39 +0000)
src/SUIT/SUIT_Study.cxx

index cc0531a807439957efe6b0ead218a8b06384b9f6..fec0b6a4f7079d312fe12443dd6f6033be28e481 100755 (executable)
@@ -246,8 +246,9 @@ SUIT_Operation* SUIT_Study::blockingOperation( SUIT_Operation* theOp ) const
     return 0;
 
   Operations tmpOps( myOperations );
-  for ( Operations::const_iterator it = tmpOps.end(); it != tmpOps.begin(); --it )
+  for ( Operations::const_iterator it = tmpOps.end(); it != tmpOps.begin(); )
   {
+    it--;
     SUIT_Operation* anOp = *it;
     if ( anOp != 0 && anOp!= theOp && !anOp->isValid( theOp ) )
       return anOp;