Salome HOME
Merge branch 'BR_2017_PORTING' into BR_2018_V8_5
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_LandCoverMapOp.cxx
index 16162cfbc943f4302de60bbe10895303f2cf1ca0..5c982205e6deb6245d7851bb347080f1ca7ce0fc 100644 (file)
@@ -465,7 +465,7 @@ void HYDROGUI_LandCoverMapOp::onPolylineFaceChanged()
             if ( !aCtx.IsNull() )
             {
               myPolylineFacePreviewPrs = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() );
-              aCtx->ClearSelected();
+              aCtx->ClearSelected(true);
 
               myPolylineFacePreviewPrs->setBorderColor( Qt::white, false, false );
               myPolylineFacePreviewPrs->setShape( aTopoDSShape, true, true, !aPolyline.IsNull() ? AIS_WireFrame : AIS_Shaded );
@@ -623,7 +623,7 @@ void HYDROGUI_LandCoverMapOp::onMouseRelease(SUIT_ViewWindow* theWindow, QMouseE
     if ( !aViewer->isPreselectionEnabled() ) {
       Handle(V3d_View) aView3d = aView->getViewPort()->getView();
       if ( !aView3d.IsNull() ) {
-        aCtx->MoveTo(myEndPnt.x(), myEndPnt.y(), aView3d);
+        aCtx->MoveTo(myEndPnt.x(), myEndPnt.y(), aView3d, true);
       }
     }