Salome HOME
lot 10 - warnings for DTM - untested
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_SubmersibleOp.cxx
index 47ca42f6ed19ad8bcdff834034678f1a178d254d..40b21fc5660b164f353ffe4f43bda0b5145a7dfd 100644 (file)
@@ -20,8 +20,8 @@
 #include <HYDROGUI_Tool2.h>
 #include <HYDROGUI_Module.h>
 
-HYDROGUI_SubmersibleOp::HYDROGUI_SubmersibleOp( HYDROGUI_Module* theModule )
-  : HYDROGUI_Operation( theModule )
+HYDROGUI_SubmersibleOp::HYDROGUI_SubmersibleOp( HYDROGUI_Module* theModule, bool isSubmersible )
+  : HYDROGUI_Operation( theModule ), myIsSubmersible( isSubmersible )
 {
 }
 
@@ -46,7 +46,7 @@ bool HYDROGUI_SubmersibleOp::processApply( int& theUpdateFlags, QString& theErro
   theUpdateFlags = 0;
   if( isOK )
   {
-    myObject->SetIsSubmersible( !myObject->IsSubmersible() );
+    myObject->SetIsSubmersible( myIsSubmersible );
     theUpdateFlags = 0;
   }
   return isOK;