From b49d7be065d82e74ee1a78bad5e1b73283d00a7c Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 13 Oct 2005 12:50:19 +0000 Subject: [PATCH] PAL10188 - unnecessary VTK viewer appears when plot2d data is displayed in VISU --- src/VISUGUI/VisuGUI.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 6721d521..507c1e0c 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -603,8 +603,6 @@ OnDisplayPrs() { if(MYDEBUG) MESSAGE("VisuGUI::OnDisplayPrs"); - SVTK_ViewWindow* vw = GetViewWindow( this, /*create=*/true ); - QApplication::setOverrideCursor(Qt::waitCursor); SALOME_ListIO aList; SalomeApp_SelectionMgr* mgr = GetSelectionMgr(this); @@ -620,6 +618,7 @@ OnDisplayPrs() if(aPrsObject){ if(MYDEBUG) MESSAGE("VisuGUI::OnDisplayPrs : Prs3d object"); UpdateViewer( this, aPrsObject ); + SVTK_ViewWindow* vw = GetViewWindow( this, /*create=*/true ); if ( vw ) { vw->highlight(anIO, 1); } @@ -648,6 +647,7 @@ OnDisplayPrs() } } } + SVTK_ViewWindow* vw = GetViewWindow( this ); if ( vw ) { vw->getRenderer()->ResetCameraClippingRange(); vw->Repaint(); -- 2.39.2