diff --git a/lib/jkqtcommon/jkqtpmathparser.cpp b/lib/jkqtcommon/jkqtpmathparser.cpp index 6523590ebe..68c725621b 100644 --- a/lib/jkqtcommon/jkqtpmathparser.cpp +++ b/lib/jkqtcommon/jkqtpmathparser.cpp @@ -1889,7 +1889,7 @@ std::string JKQTPMathParser::jkmpException::getMessage() const { } const char *JKQTPMathParser::jkmpException::what() const noexcept { - return getMessage().c_str(); + return errormessage.c_str(); } JKQTPMathParser *JKQTPMathParser::jkmpNode::getParser(){ return parser; }