X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ProfileOp.cxx;h=bda67417e629b265e12c3a3345c31629ace59d38;hb=f34b90e9e4e02ba65419134d5d37a2e42aecfabf;hp=90f382c7e8ff931ea7db40a97c978ece8b5204ba;hpb=5f5584107a486013bff5df971695bc8197716252;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx index 90f382c7..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; + theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer; return true; }