From: adv Date: Wed, 20 Nov 2013 07:47:59 +0000 (+0000) Subject: Set polyline visible after it creation (Bug #80). X-Git-Tag: BR_hydro_v_0_3_1~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51deb97b7de92c5b2e6da52fe24032dfe15d415c;p=modules%2Fhydro.git Set polyline visible after it creation (Bug #80). --- diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx index 0cd16bf7..cbefd532 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx @@ -187,8 +187,11 @@ bool HYDROGUI_PolylineOp::processApply( int& theUpdateFlags, } aPolylineObj->SetPolylineData(aPolylineData); + if( !myIsEdit ) + module()->setObjectVisible( HYDROGUI_Tool::GetActiveOCCViewId( module() ), aPolylineObj, true ); + theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced; - module()->setObjectVisible( HYDROGUI_Tool::GetActiveGraphicsViewId( module() ), aPolylineObj, true ); + return true; }