fix: Limiting the height of a message that contains some RTL text causes a crash (#4168)

Co-authored-by: mohad12211 <51754973+mohad12211@users.noreply.github.com>
Fixes https://github.com/Chatterino/chatterino2/issues/4166
This commit is contained in:
nerix
2022-11-20 16:30:51 +01:00
committed by GitHub
parent 3924861a3d
commit 82d345bc76
3 changed files with 20 additions and 7 deletions
@@ -58,7 +58,7 @@ struct MessageLayoutContainer {
void end();
void clear();
bool canAddElements();
bool canAddElements() const;
void addElement(MessageLayoutElement *element);
void addElementNoLineBreak(MessageLayoutElement *element);
void breakLine();