]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1948 multiply selection with Shift button pressed does not work
authornds <nds@opencascade.com>
Wed, 5 Apr 2017 12:22:21 +0000 (15:22 +0300)
committernds <nds@opencascade.com>
Wed, 5 Apr 2017 12:22:43 +0000 (15:22 +0300)
It is important to use isSame instead of isEqual to check if shape is selected(came from owner)

src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index 81bf3970fe89dbc9b58d4b1e2d8dcbb8a1a79e06..9e911159185f554b8cbd90817f85e9a2d808b1b4 100755 (executable)
@@ -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;