diff --git a/classes/parser/parser.cpp b/classes/parser/parser.cpp index 4b83c42..5ef1285 100644 --- a/classes/parser/parser.cpp +++ b/classes/parser/parser.cpp @@ -149,7 +149,7 @@ void Parser::parse(const QString &templateString, if (index < templateString.length() - 1) { - resultString.append(templateString.mid(last, templateString.length() - last)); + resultString.append(templateString.right(templateString.length() - index)); } } //-----------------------------------------------------------------------------