From: asl Date: Thu, 13 Oct 2005 12:50:19 +0000 (+0000) Subject: PAL10188 - unnecessary VTK viewer appears when plot2d data is displayed in VISU X-Git-Tag: ForTest_3_1_0a2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b49d7be065d82e74ee1a78bad5e1b73283d00a7c;p=modules%2Fvisu.git PAL10188 - unnecessary VTK viewer appears when plot2d data is displayed in VISU --- 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();