diff options
Diffstat (limited to 'src/interface/RichLabel.cpp')
| -rw-r--r-- | src/interface/RichLabel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/RichLabel.cpp b/src/interface/RichLabel.cpp index 894cf9e..3ee12ce 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); } |
