Fixes #230 appearence settings not updating

This commit is contained in:
fourtf
2018-01-23 22:00:58 +01:00
parent 8a77f918f6
commit 418189d39c
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -155,9 +155,10 @@ void TextElement::addToContainer(MessageLayoutContainer &container, MessageEleme
return e;
};
if (word.width == -1) {
word.width = metrics.width(word.text);
}
// fourtf: add again
// if (word.width == -1) {
word.width = metrics.width(word.text);
// }
// see if the text fits in the current line
if (container.fitsInLine(word.width)) {