diff --git a/src/interface/RichLabel.cpp b/src/interface/RichLabel.cpp index 894cf9eb3..3ee12ce00 100644 --- a/src/interface/RichLabel.cpp +++ b/src/interface/RichLabel.cpp @@ -127,6 +127,10 @@ void RichLabel::updateRichText() originalTextPos++; } + + if(stackPos != -1) + throw RichTextParseException("Unclosed region"); + finalText[finalTextPos] = 0; displayText = std::string(finalText); }