From 48b08d32d4d9e2a65c4823aebdf4b1ec424d0c45 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 25 Aug 2015 12:44:51 +0300 Subject: [PATCH] Issue #793: Set Coincident active if a line is selected --- src/PartSet/PartSet_Validators.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PartSet/PartSet_Validators.cpp b/src/PartSet/PartSet_Validators.cpp index 86f6cb97e..4bb729366 100755 --- a/src/PartSet/PartSet_Validators.cpp +++ b/src/PartSet/PartSet_Validators.cpp @@ -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); } -- 2.39.2