From: nds Date: Wed, 27 Nov 2013 08:25:48 +0000 (+0000) Subject: Bug #132 - problems on show image and polyline (V0_3_1). X-Git-Tag: issue_132_11_28~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c2ec1028336be4cdaa064554507b493755e0189;p=modules%2Fhydro.git Bug #132 - problems on show image and polyline (V0_3_1). --- diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx index ce078a5f..74cb0f63 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx @@ -236,15 +236,14 @@ bool HYDROGUI_PolylineOp::processApply( int& theUpdateFlags, theUpdateFlags = UF_Model; + // the polyline should be rebuild in all viewers, where it is displayed + theUpdateFlags |= UF_Viewer | UF_GV_Forced; + theUpdateFlags |= UF_OCCViewer | UF_OCC_Forced; + size_t anActiveViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() ); - if ( anActiveViewId != 0 ) - { - theUpdateFlags |= UF_Viewer | UF_GV_Forced; - } - else + if ( anActiveViewId == 0 ) { anActiveViewId = HYDROGUI_Tool::GetActiveOCCViewId( module() ); - theUpdateFlags |= UF_OCCViewer | UF_OCC_Forced; } if( !myIsEdit )