Salome HOME
++ shapefil
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DeleteOp.cxx
index 8a85237954bf2078226d85a6eef5001eac94f329..1ef77793f9e786513d5392d6a4cf5074c8eddad8 100644 (file)
@@ -123,8 +123,11 @@ void HYDROGUI_DeleteOp::startOperation()
   for( Standard_Integer anIndex = 1, aLength = aSeq.Length(); anIndex <= aLength; anIndex++ )
   {
     Handle(HYDROData_Entity) anObject = aSeq.Value( anIndex );
-    if ( !anObject.IsNull() && !anObject->IsRemoved() )
+
+    if ( !anObject.IsNull() && !anObject->IsRemoved() ) {
       anObject->Remove();
+      module()->setObjectRemoved( anObject );
+    }
   }
 
   commitDocOperation();