mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
removed linebreak after wrapped TextElements (#1813)
This commit is contained in:
parent
382dfbc2fa
commit
caa11dda3e
1 changed files with 3 additions and 5 deletions
|
@ -361,10 +361,9 @@ void TextElement::addToContainer(MessageLayoutContainer &container,
|
|||
if (isSurrogate)
|
||||
i++;
|
||||
}
|
||||
|
||||
container.addElement(getTextLayoutElement(
|
||||
//add the final piece of wrapped text
|
||||
container.addElementNoLineBreak(getTextLayoutElement(
|
||||
text.mid(wordStart), width, this->hasTrailingSpace()));
|
||||
container.breakLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -670,10 +669,9 @@ void IrcTextElement::addToContainer(MessageLayoutContainer &container,
|
|||
}
|
||||
|
||||
// Add last remaining text & segments
|
||||
container.addElement(
|
||||
container.addElementNoLineBreak(
|
||||
getTextLayoutElement(text.mid(wordStart), segments, width,
|
||||
this->hasTrailingSpace()));
|
||||
container.breakLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue