Salome HOME
Tests for Bathymetry object.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageOp.cxx
index 86055e826db3dd3f7a4acb36a3dd9be0e4624ee3..3ad1959d30b56bcc2ae585a643639ca30b72fcab 100644 (file)
@@ -300,8 +300,7 @@ bool HYDROGUI_ImportImageOp::processApply( int& theUpdateFlags,
     module()->setObjectVisible( HYDROGUI_Tool::GetActiveGraphicsViewId( module() ), anImageObj, true );
 
   if( myIsEdit )
-    if( HYDROOperations_Factory* aFactory = HYDROOperations_Factory::Factory() )
-      aFactory->UpdateImage( doc(), anImageObj );
+    anImageObj->Update();
 
   theUpdateFlags = UF_Model | UF_Viewer | UF_GV_Forced;
   return true;