X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ProfileOp.cxx;h=bda67417e629b265e12c3a3345c31629ace59d38;hb=f34b90e9e4e02ba65419134d5d37a2e42aecfabf;hp=8266fd7a9b6ee3f2261490b156767a874f76a62a;hpb=a1becd0919869e7278c52ff77e841b379497ab65;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx index 8266fd7a..bda67417 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx @@ -223,9 +223,20 @@ bool HYDROGUI_ProfileOp::processApply( int& theUpdateFlags, aProfileUZ->SetSectionType( 0, aSectType ); + if ( !myIsEdit ) + { + aProfileObj->SetBorderColor( HYDROData_Profile::DefaultBorderColor() ); + } + + // At first we update the child u,z profile object + aProfileUZ->SetToUpdate( true ); + aProfileUZ->Update(); + + // And now we update our edited object aProfileObj->Update(); + module()->setIsToUpdate( aProfileObj ); - theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced; + theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer; return true; }