From: asl Date: Mon, 13 Nov 2017 13:54:15 +0000 (+0300) Subject: refs #1395: clear selection on bathymetry selection switch X-Git-Tag: v2.1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e58aa4324908b7cdd87ea71f340dc3039d288dcc;p=modules%2Fhydro.git refs #1395: clear selection on bathymetry selection switch --- diff --git a/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx b/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx index 8c843cd2..526c2c21 100644 --- a/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx +++ b/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx @@ -90,6 +90,8 @@ void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive ) if( myIsActive==isActive ) return; + getContext( module() )->ClearSelected(); + Handle(AIS_InteractiveContext) ctx = getContext( module() ); QList baths = getShownBathymetries( module() ); if( isActive )