From 51deb97b7de92c5b2e6da52fe24032dfe15d415c Mon Sep 17 00:00:00 2001 From: adv Date: Wed, 20 Nov 2013 07:47:59 +0000 Subject: [PATCH] Set polyline visible after it creation (Bug #80). --- src/HYDROGUI/HYDROGUI_PolylineOp.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.2