From: dbv Date: Tue, 26 Apr 2016 13:09:14 +0000 (+0300) Subject: Issue #1369: Fixed validator. X-Git-Tag: V_2.3.0~99 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55006f3f362570cce28e7c801b8c3d26cbe8a048;p=modules%2Fshaper.git Issue #1369: Fixed validator. --- diff --git a/src/BuildPlugin/BuildPlugin_Validators.cpp b/src/BuildPlugin/BuildPlugin_Validators.cpp index 5097fea40..dfdd20d39 100644 --- a/src/BuildPlugin/BuildPlugin_Validators.cpp +++ b/src/BuildPlugin/BuildPlugin_Validators.cpp @@ -87,12 +87,16 @@ bool BuildPlugin_ValidatorBaseForBuild::isValid(const AttributePtr& theAttribute // It is whole sketch. return false; } - } else if(!aShape->isEqual(aContextShape)) { - // Local selection on body does not allowed. - theError = "Selected shape is in the local selection. Only global selection is allowed."; - return false; + + continue; } } + + if(!aShape->isEqual(aContextShape)) { + // Local selection on body does not allowed. + theError = "Selected shape is in the local selection. Only global selection is allowed."; + return false; + } } return true;