]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
NPAL18624: problem with restoring the visual parameters of the cloned viewers.
authorakl <akl@opencascade.com>
Wed, 23 Jan 2008 14:25:27 +0000 (14:25 +0000)
committerakl <akl@opencascade.com>
Wed, 23 Jan 2008 14:25:27 +0000 (14:25 +0000)
src/SalomeApp/SalomeApp_VisualState.cxx

index dab9a907e109894e2ed77943c6a53a3d064eb196..08afaeddaeb44a03b30b96fb8fbc4daacb033738 100644 (file)
@@ -217,13 +217,13 @@ void SalomeApp_VisualState::restoreState(int savePoint)
 
     //Resize the views, set their captions and apply visual parameters.
     QPtrVector<SUIT_ViewWindow> views = vm->getViews();  
-    for (int i = 0, j = 0; i<viewCount; i++, j++) {
+    for (int i = 0, j = 0; i<viewCount; i++, j+=2) {
       viewWin = views[i];
       if ( !viewWin ) 
        continue;
 
       // wait untill the window is really shown.  This step fixes MANY bugs..
-      while ( !viewWin->isVisible() )
+      while ( !vm->isVisible() )
        qApp->processEvents();
       
       viewWin->setCaption(ip->getValue(viewerEntry, j).c_str());