]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1724: Let use Middle constraint when a one line or point is selected
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 6 Sep 2016 13:24:38 +0000 (16:24 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 6 Sep 2016 13:24:38 +0000 (16:24 +0300)
src/PartSet/PartSet_Validators.cpp

index 6922bb6b484bd819f93e13dba14a236261e284c5..831f9d914f85c32f17f36c109a90f1dd20564e17 100755 (executable)
@@ -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;
 }