From: mzn Date: Tue, 23 Dec 2008 12:14:23 +0000 (+0000) Subject: Fix for bug IPAL20731 (Clipping item is available in pop-up with multiple selection... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9514e6dbcf5db4edd89dd941f1f519f902927dfc;p=modules%2Fsmesh.git Fix for bug IPAL20731 (Clipping item is available in pop-up with multiple selection, but it works for one element only). --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index b191f63ae..30ab88f34 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -3056,7 +3056,7 @@ void SMESHGUI::initialize( CAM_Application* app ) // Clipping //------------------------------------------------- popupMgr()->insert( action( 1134 ), -1, -1 ); - popupMgr()->setRule( action( 1134 ), aMeshInVTK + "&& isVisible", QtxPopupMgr::VisibleRule ); + popupMgr()->setRule( action( 1134 ), aMeshInVTK + "&& selcount=1 && isVisible", QtxPopupMgr::VisibleRule ); popupMgr()->insert( separator(), -1, -1 );