Salome HOME
Image positioning by two points.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_UpdateImageOp.cxx
index 09d31a9defa64f5ad490befae522a5d590a70bfb..e0777f2338659f78bb5e8295c8d0959036df322b 100644 (file)
@@ -29,8 +29,6 @@
 #include <HYDROData_Document.h>
 #include <HYDROData_Image.h>
 
-#include <HYDROOperations_Factory.h>
-
 HYDROGUI_UpdateImageOp::HYDROGUI_UpdateImageOp( HYDROGUI_Module* theModule )
 : HYDROGUI_Operation( theModule )
 {
@@ -53,14 +51,11 @@ void HYDROGUI_UpdateImageOp::startOperation()
     Handle(HYDROData_Image) anImage =
       Handle(HYDROData_Image)::DownCast( aSeq.Value( anIndex ) );
     if( !anImage.IsNull() && anImage->MustBeUpdated() )
-    {
-      HYDROOperations_Factory* aFactory = HYDROOperations_Factory::Factory();
-      aFactory->UpdateImage( doc(), anImage );
-    }
+      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();
 }