Salome HOME
HYDROGUI_Wizard has been refactored and now uses QStackedWidget instead of QWizard.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_UpdateImageOp.cxx
index 0ac92a748e520d4b67df3feab9247d96e22ea902..34256182279b0d787ee03868978891d6955a5553 100644 (file)
@@ -46,16 +46,16 @@ void HYDROGUI_UpdateImageOp::startOperation()
   startDocOperation();
 
   HYDROData_SequenceOfObjects aSeq = HYDROGUI_Tool::GetSelectedObjects( module() );
-  for( Standard_Integer anIndex = 1, aLength = aSeq.Length(); anIndex <= aLength; anIndex++ )
+  for( int anIndex = 1, aLength = aSeq.Length(); anIndex <= aLength; anIndex++ )
   {
     Handle(HYDROData_Image) anImage =
       Handle(HYDROData_Image)::DownCast( aSeq.Value( anIndex ) );
-    if( !anImage.IsNull() && anImage->MustBeUpdated() )
+    if( !anImage.IsNull() && anImage->IsMustBeUpdated() )
       anImage->Update();
   }
 
   commitDocOperation();
 
-  module()->update( UF_Model | UF_Viewer | UF_GV_Forced );
+  module()->update( UF_Model | UF_Viewer | UF_GV_Forced | UF_OCCViewer | UF_OCC_Forced );
   commit();
 }