]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_Validators.cpp
Salome HOME
Fix: gcc issue: default parameter value for a reference from a constructor
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Validators.cpp
index b8b2fa53e498be217bd9f10fb550ea393caa5aca..6e8b36b6bd546a7eb2c734a7dea7904a3ed4b626 100644 (file)
@@ -53,14 +53,16 @@ bool SketchPlugin_DistanceAttrValidator::isValid(const AttributePtr& theAttribut
       dynamic_cast<const GeomValidators_ShapeType*>(aFactory->validator("GeomValidators_ShapeType"));
     std::list<std::string> anArguments;
     anArguments.push_back("circle");
-    bool aShapeValid = aShapeValidator->isValid(aRefAttr, anArguments);
+    std::string aCircleError;
+    bool aShapeValid = aShapeValidator->isValid(aRefAttr, anArguments, aCircleError);
     // the circle line is not a valid case
     if (aShapeValid)
       return false;
       
     anArguments.clear();
     anArguments.push_back("line");
-    aShapeValid = aShapeValidator->isValid(aRefAttr, anArguments);
+    std::string aLineError;
+    aShapeValid = aShapeValidator->isValid(aRefAttr, anArguments, aLineError);
     // if the attribute value is not a line, that means it is a vertex. A vertex is always valid
     if (!aShapeValid)
       return true;