Commit 33508baa authored by yannick legoc's avatar yannick legoc

Corrected UserVariable::verify by calling MathExpression::checkValue to...

Corrected UserVariable::verify by calling MathExpression::checkValue to generate exceptions in case of errors
parent 11325548
......@@ -51,8 +51,12 @@ UserVariable::~UserVariable() {
void UserVariable::verify(const std::string& expression) {
// Create a new math expression.
MathExpression mathExpression(expression);
mathExpression.init();
// Check the value to generate an exception if there is an error.
mathExpression.checkValue(true);
}
void UserVariable::init() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment