From: nds Date: Wed, 5 Apr 2017 12:22:21 +0000 (+0300) Subject: Issue #1948 multiply selection with Shift button pressed does not work X-Git-Tag: V_2.7.0~63 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9158274a3cbee25d212649b923f4c0f91df691fc;p=modules%2Fshaper.git Issue #1948 multiply selection with Shift button pressed does not work It is important to use isSame instead of isEqual to check if shape is selected(came from owner) --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 81bf3970f..9e9111591 100755 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -815,7 +815,7 @@ bool ModuleBase_WidgetMultiSelector::findInSelection(const ObjectPtr& theObject, for (; anIt != aLast && !aFound; anIt++) { GeomShapePtr aCShape = *anIt; if (aCShape.get()) - aFound = aCShape->isEqual(aShape); + aFound = aCShape->isSame(aShape); } } return aFound;