]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Avoid creation of two views on one(first) call of CreateXYPlot() or Create3DView()
authorjfa <jfa@opencascade.com>
Thu, 15 Sep 2005 13:34:23 +0000 (13:34 +0000)
committerjfa <jfa@opencascade.com>
Thu, 15 Sep 2005 13:34:23 +0000 (13:34 +0000)
src/VISU_I/VISU_View_i.cc

index a83055ce74a88a13f86fd93e63701dbb8325b08f..6c8293269f68c7ba257d14a51dbb207340b5d12f 100644 (file)
@@ -927,7 +927,11 @@ namespace VISU {
     void
     Execute()
     {
-      myResult = myApplication->getViewManager(TViewer::Type(), true);
+      myResult = myApplication->getViewManager(TViewer::Type(), false);
+      if (!myResult) {
+       myResult = myApplication->getViewManager(TViewer::Type(), true);
+       myResult->closeAllViews();
+      }
     }
   };