]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #727, #736: fix for the first bug and for the second part (Bug2) of the last...
authormkr <mkr@opencascade.com>
Mon, 23 Nov 2015 14:19:27 +0000 (17:19 +0300)
committermkr <mkr@opencascade.com>
Mon, 23 Nov 2015 14:19:27 +0000 (17:19 +0300)
src/HYDROGUI/HYDROGUI_SplitPolylinesOp.cxx

index ff9f45c210f6a55387b94329ff61ae4d820d046d..cae14c9ebb4b4e86bc1029c960a88501dea7478f 100644 (file)
@@ -33,6 +33,7 @@
 #include <BRep_Builder.hxx>
 #include <TopoDS_Vertex.hxx>
 #include <TopoDS_Compound.hxx>
+#include <AIS_Shape.hxx>
 
 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();
       }
     }