Salome HOME
Feature #86: The hierarchy in the Object Browser (T 19).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DeleteOp.cxx
index 1e9b8008e62fab87a4309244c7e2650145dd9e7c..704fa4e34d8b55b88748fa0e440cb34c39cf03f4 100644 (file)
@@ -55,7 +55,7 @@ void HYDROGUI_DeleteOp::startOperation()
   {
     for( Standard_Integer anIndex = 1, aLength = aSeq.Length(); anIndex <= aLength; anIndex++ )
     {
-      Handle(HYDROData_Object) anObject = aSeq.Value( anIndex );
+      Handle(HYDROData_Entity) anObject = aSeq.Value( anIndex );
       if( !anObject.IsNull() )
       {
         aFullSeq.Append( anObject );
@@ -93,12 +93,12 @@ void HYDROGUI_DeleteOp::startOperation()
   startDocOperation();
   for( Standard_Integer anIndex = 1, aLength = aFullSeq.Length(); anIndex <= aLength; anIndex++ )
   {
-    Handle(HYDROData_Object) anObject = aFullSeq.Value( anIndex );
+    Handle(HYDROData_Entity) anObject = aFullSeq.Value( anIndex );
     if( !anObject.IsNull() && !anObject->IsRemoved() )
       anObject->Remove();
   }
   commitDocOperation();
 
-  module()->update( UF_Model | UF_Viewer );
+  module()->update( UF_Model | UF_Viewer | UF_OCCViewer );
   commit();
 }