From: apo Date: Wed, 11 Jan 2006 11:49:37 +0000 (+0000) Subject: Fix for Bug GVIEW11206 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=10a4f05358f346e18bbc666049f93b6f1386800e;p=modules%2Fvisu.git Fix for Bug GVIEW11206 Display/Erase items are not removed after displaying/erasing objects --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 5d6a80da..cf4415e8 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2414,7 +2414,7 @@ createPopupMenus() QString orCurveInvisible = "or (type='VISU::TCURVE'" + andInvisible + ")"; QString aPrsVisible = "(($type in {'VISU::TMESH' " + aPrsAll + "}) and isVisible)"; QString aPrsInvisible = "(($type in {'VISU::TMESH' " + aPrsAll + "})" + andInvisible + ")"; - QString aComponent = "( selcount=1 and canBeDisplayed )"; + QString aComponent = "( selcount=1 and canBeDisplayed and isComponent )"; QString anEraseRule = "( selcount>0 and ({true} in $canBeDisplayed) and (" + aPrsVisible + " or (client='ObjectBrowser' and (" + aTableOrCont + orCurveVisible + "))) ) or " + aComponent;