]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #793: Set Coincident active if a line is selected
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 25 Aug 2015 09:44:51 +0000 (12:44 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 25 Aug 2015 09:44:51 +0000 (12:44 +0300)
src/PartSet/PartSet_Validators.cpp

index 86f6cb97ee6c6194fcc5a3798194f9e4e0a0de0a..4bb729366c33b57bdbe75754f77dca7d5b3ccd79 100755 (executable)
@@ -123,7 +123,9 @@ bool PartSet_RigidSelection::isValid(const ModuleBase_ISelection* theSelection)
 
 bool PartSet_CoincidentSelection::isValid(const ModuleBase_ISelection* theSelection) const
 {
+  // Coincident can be applied to points and to lines
   int aCount = shapesNbPoints(theSelection);
+  aCount += shapesNbLines(theSelection);
   return (aCount > 0) && (aCount < 3);
 }