Bug: JKMathParser exception return local variable

Fix the what() function which returned a pointer to a local variable.
This commit is contained in:
Stephan Oostveen 2021-03-23 20:55:04 +01:00
parent fc7622e901
commit e7ca3db4de

View File

@ -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; }