diff --git a/ThirdParty/expressionparser/ExpressionParserImpl.cpp b/ThirdParty/expressionparser/ExpressionParserImpl.cpp index fb033b3a9a..eb8b04ea3f 100644 --- a/ThirdParty/expressionparser/ExpressionParserImpl.cpp +++ b/ThirdParty/expressionparser/ExpressionParserImpl.cpp @@ -40,12 +40,11 @@ std::vector ExpressionParserImpl::detectReferencedVariables(const QStri { QString variableNameLowerCase = QString::fromStdString(s); - // ExprTk reports always in + // ExprTk reports always in lower case int index = expression.indexOf(variableNameLowerCase, 0, Qt::CaseInsensitive); if (index > -1) { - referencedVariables.push_back(expression.mid(index, variableNameLowerCase.size())); } }