From: mkr Date: Mon, 23 Nov 2015 14:19:27 +0000 (+0300) Subject: refs #727, #736: fix for the first bug and for the second part (Bug2) of the last... X-Git-Tag: v1.5~6^2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a0964e8c4caecf35f149dbc669714901c5fd2336;p=modules%2Fhydro.git refs #727, #736: fix for the first bug and for the second part (Bug2) of the last bug. --- 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(); } }