From: mzn Date: Fri, 2 Sep 2005 08:18:36 +0000 (+0000) Subject: Fix for the problem: regression: SMESH ? remove nodes/elements manually. X-Git-Tag: V3_1_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0e57fc74416cbac7bb1898edec8d8706cfdb3151;p=modules%2Fsmesh.git Fix for the problem: regression: SMESH ? remove nodes/elements manually. --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 345f756f8..02c825102 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -1170,8 +1170,13 @@ bool SMESHGUI::OnGUIEvent( int theCommandID ) } } } - SALOME_ListIO l1; - aSel->setSelectedObjects( l1 ); + + if (anAction == SMESH::eErase) { + SALOME_ListIO l1; + aSel->setSelectedObjects( l1 ); + } + else + aSel->setSelectedObjects( selected ); break; }