From fe1019da82ec23f505821b8fe36426cbbbc18d89 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 15 Sep 2005 13:34:23 +0000 Subject: [PATCH] Avoid creation of two views on one(first) call of CreateXYPlot() or Create3DView() --- src/VISU_I/VISU_View_i.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); + } } }; -- 2.39.2