From: jfa Date: Thu, 15 Sep 2005 13:34:23 +0000 (+0000) Subject: Avoid creation of two views on one(first) call of CreateXYPlot() or Create3DView() X-Git-Tag: V3_1_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe1019da82ec23f505821b8fe36426cbbbc18d89;p=modules%2Fvisu.git Avoid creation of two views on one(first) call of CreateXYPlot() or Create3DView() --- diff --git a/src/VISU_I/VISU_View_i.cc b/src/VISU_I/VISU_View_i.cc index a83055ce..6c829326 100644 --- a/src/VISU_I/VISU_View_i.cc +++ b/src/VISU_I/VISU_View_i.cc @@ -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(); + } } };