X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ExternalValidator.cpp;h=362dd94f17ab09068ada469ed648c244b79ec54f;hb=64fc7e4fdd63997ec7a502b233ef5f88186d5bbb;hp=7b85871883d0e3a4cf2bcf4dcf3a0c9ea63e5401;hpb=a731f82dccbfdb67cbf8e8d617222a4d3e32018a;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ExternalValidator.cpp b/src/SketchPlugin/SketchPlugin_ExternalValidator.cpp index 7b8587188..362dd94f1 100644 --- a/src/SketchPlugin/SketchPlugin_ExternalValidator.cpp +++ b/src/SketchPlugin/SketchPlugin_ExternalValidator.cpp @@ -13,7 +13,8 @@ #include bool SketchPlugin_ExternalValidator::isValid(const AttributePtr& theAttribute, - const std::list& theArguments) const + const std::list& theArguments, + std::string& theError) const { if (theArguments.size() != 1) return true; @@ -27,8 +28,10 @@ bool SketchPlugin_ExternalValidator::isValid(const AttributePtr& theAttribute, bool isParameterExternal = isExternalAttribute(aFeature->attribute(aFrontArgument)); // it is not possible that both features, attribute and attribute in parameter, are external - if (isAttributeExternal && isParameterExternal) + if (isAttributeExternal && isParameterExternal) { + theError = "Both features, attribute and attribute in parameter, are external."; return false; + } return true; }