refactored lazyloadedimage

This commit is contained in:
fourtf
2017-04-14 14:52:31 +02:00
parent 5db315b522
commit 043ddfafa6
3 changed files with 67 additions and 79 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ bool MessageRef::layout(int width, bool enableEmoteMargins)
int xOffset = 0, yOffset = 0;
if (enableEmoteMargins) {
if (word.isImage() && word.getImage().getIsHat()) {
if (word.isImage() && word.getImage().isHat()) {
xOffset = -word.getWidth() + 2;
} else {
xOffset = word.getXOffset();