From: vsv Date: Tue, 6 Sep 2016 13:24:38 +0000 (+0300) Subject: Issue #1724: Let use Middle constraint when a one line or point is selected X-Git-Tag: V_2.5.0~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b8daca3709b3e305805e3c2232b5ffa832a44ed;p=modules%2Fshaper.git Issue #1724: Let use Middle constraint when a one line or point is selected --- diff --git a/src/PartSet/PartSet_Validators.cpp b/src/PartSet/PartSet_Validators.cpp index 6922bb6b4..831f9d914 100755 --- a/src/PartSet/PartSet_Validators.cpp +++ b/src/PartSet/PartSet_Validators.cpp @@ -320,7 +320,7 @@ bool PartSet_MiddlePointSelection::isValid(const ModuleBase_ISelection* theSelec if (theSelection->getSelected(ModuleBase_ISelection::Viewer).size() == 0) return isEmptySelectionValid(theOperation); else - return shapesNbLines(theSelection) == 1 && shapesNbPoints(theSelection) == 1; + return shapesNbLines(theSelection) == 1 || shapesNbPoints(theSelection) == 1; }