Fix a crash bug that occurred when the "Limit message height" setting was enabled and a message was being split up into multiple lines. IRC only. (#2329)
This commit is contained in:
@@ -623,6 +623,11 @@ void IrcTextElement::addToContainer(MessageLayoutContainer &container,
|
||||
// XXX(pajlada): NOT TESTED
|
||||
for (int i = 0; i < textLength; i++)
|
||||
{
|
||||
if (!container.canAddElements())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
auto isSurrogate = text.size() > i + 1 &&
|
||||
QChar::isHighSurrogate(text[i].unicode());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user