From a0964e8c4caecf35f149dbc669714901c5fd2336 Mon Sep 17 00:00:00 2001 From: mkr Date: Mon, 23 Nov 2015 17:19:27 +0300 Subject: [PATCH] refs #727, #736: fix for the first bug and for the second part (Bug2) of the last bug. --- src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx b/src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx index ff9f45c2..cae14c9e 100644 --- a/src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx +++ b/src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx @@ -33,6 +33,7 @@ #include #include #include +#include HYDROGUI_SplitPolylinesOp::HYDROGUI_SplitPolylinesOp( HYDROGUI_Module* theModule ) : HYDROGUI_Operation( theModule ), @@ -148,7 +149,10 @@ void HYDROGUI_SplitPolylinesOp::OnUpdatePreview() if ( !aCtx.IsNull() ) { if( !myPreviewPrs ) + { myPreviewPrs = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() ); + myPreviewPrs->setSelectionMode( AIS_Shape::SelectionMode( TopAbs_VERTEX ) ); + } aCtx->ClearSelected(); } } -- 2.39.2