]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL22319 : Salome is suspended,when we create new Local coordinate system
authorvsr <vsr@opencascade.com>
Fri, 18 Mar 2011 11:04:22 +0000 (11:04 +0000)
committervsr <vsr@opencascade.com>
Fri, 18 Mar 2011 11:04:22 +0000 (11:04 +0000)
src/GEOMGUI/GEOM_Displayer.cxx

index 063cb70af9febf34309832cb9d4e429e4767bf7b..aff2f8320d88910ef4f1572297fcd6a47bbffac9 100644 (file)
@@ -1458,7 +1458,7 @@ void GEOM_Displayer::AfterDisplay( SALOME_View* v, const SALOME_OCCPrs* p )
       AIS_ListOfInteractive objects;
       prs->GetObjects( objects );
       AIS_ListIteratorOfListOfInteractive it( objects );
-      while( it.More() ) {
+      for ( ; it.More(); it.Next() ) {
         Handle(GEOM_AISShape) sh = Handle(GEOM_AISShape)::DownCast( it.Value() );
        if ( sh.IsNull() ) continue;
        Handle(SALOME_InteractiveObject) IO = sh->getIO();
@@ -1467,7 +1467,6 @@ void GEOM_Displayer::AfterDisplay( SALOME_View* v, const SALOME_OCCPrs* p )
        if ( aPropMap.contains( TRANSPARENCY_PROP ) ) {
          double transparency = aPropMap.value(TRANSPARENCY_PROP).toDouble();
          ic->SetTransparency( sh, transparency, true );
-         it.Next();
        }
       }
     }