Some more safety for RichText parser

This commit is contained in:
Simon Robertshaw 2012-08-17 16:38:06 +01:00
parent 614a90cfc6
commit b835861519

View File

@ -127,6 +127,10 @@ void RichLabel::updateRichText()
originalTextPos++;
}
if(stackPos != -1)
throw RichTextParseException("Unclosed region");
finalText[finalTextPos] = 0;
displayText = std::string(finalText);
}