X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_UpdateImageOp.cxx;h=e0777f2338659f78bb5e8295c8d0959036df322b;hb=5cae7e874afd2fc1b6f61023e8ebd33a933db3c7;hp=09d31a9defa64f5ad490befae522a5d590a70bfb;hpb=8c87cbf681f35c575bf15818e2afc226c272404d;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_UpdateImageOp.cxx b/src/HYDROGUI/HYDROGUI_UpdateImageOp.cxx index 09d31a9d..e0777f23 100644 --- a/src/HYDROGUI/HYDROGUI_UpdateImageOp.cxx +++ b/src/HYDROGUI/HYDROGUI_UpdateImageOp.cxx @@ -29,8 +29,6 @@ #include #include -#include - 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(); }