mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
unscuffed word wrapping
This commit is contained in:
parent
69fb3652dd
commit
c54f2c31dd
1 changed files with 3 additions and 3 deletions
|
@ -503,11 +503,11 @@ Message::layout(int width, bool enableEmoteMargins)
|
|||
|
||||
std::vector<short> &charWidths = word.getCharacterWidthCache();
|
||||
|
||||
if (charWidths.size() == 0) {
|
||||
charWidths.reserve(text.length());
|
||||
auto xD = charWidths.size();
|
||||
|
||||
if (charWidths.size() == 0) {
|
||||
for (int i = 0; i < text.length(); i++) {
|
||||
charWidths.push_back(metrics.width(text, i));
|
||||
charWidths.push_back(metrics.charWidth(text, i));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue