Salome HOME
Fix for the problem: regression: SMESH ? remove nodes/elements manually.
authormzn <mzn@opencascade.com>
Fri, 2 Sep 2005 08:18:36 +0000 (08:18 +0000)
committermzn <mzn@opencascade.com>
Fri, 2 Sep 2005 08:18:36 +0000 (08:18 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 345f756..02c8251 100644 (file)
@@ -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;
     }