From 9b8daca3709b3e305805e3c2232b5ffa832a44ed Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 6 Sep 2016 16:24:38 +0300 Subject: [PATCH] Issue #1724: Let use Middle constraint when a one line or point is selected --- src/PartSet/PartSet_Validators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2