From 1c2ec1028336be4cdaa064554507b493755e0189 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 27 Nov 2013 08:25:48 +0000 Subject: [PATCH] Bug #132 - problems on show image and polyline (V0_3_1). --- src/HYDROGUI/HYDROGUI_PolylineOp.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 ) -- 2.39.2