From: jfa Date: Wed, 20 Jul 2005 08:40:06 +0000 (+0000) Subject: IPAL9363: unhighlight erased object in 3D viewer X-Git-Tag: V3_0_1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2ab4a51d7ca8c118c4cc9a00cd55440db9c6bdce;p=modules%2Fvisu.git IPAL9363: unhighlight erased object in 3D viewer --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 506f77e0..39ae6385 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -651,6 +651,10 @@ OnErasePrs() if(MYDEBUG) MESSAGE("OnErasePrs"); QApplication::setOverrideCursor(Qt::waitCursor); + + SVTK_ViewWindow* vw = GetViewWindow(this); + if (vw) vw->unHighlightAll(); + SALOME_ListIO aList; SalomeApp_SelectionMgr* mgr = GetSelectionMgr(this); mgr->selectedObjects(aList); @@ -661,8 +665,9 @@ OnErasePrs() CORBA::Object_var anObject = GetSelectedObj( GetAppStudy(this), anIO->getEntry() ); ErasePrs(this, anObject, false); } - if (SVTK_ViewWindow* vw = GetViewWindow( this )) - vw->Repaint(); + + if (vw) vw->Repaint(); + QApplication::restoreOverrideCursor(); }