From: vsv Date: Tue, 25 Aug 2015 09:44:51 +0000 (+0300) Subject: Issue #793: Set Coincident active if a line is selected X-Git-Tag: V_1.4.0_beta4~254 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48b08d32d4d9e2a65c4823aebdf4b1ec424d0c45;p=modules%2Fshaper.git Issue #793: Set Coincident active if a line is selected --- 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); }