From e047a55da8fee5b84c8e176fb3a7f73299821666 Mon Sep 17 00:00:00 2001 From: fourtf Date: Mon, 5 Feb 2018 23:56:16 +0100 Subject: [PATCH] fixed compiling on macos --- src/messages/layouts/messagelayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/layouts/messagelayout.cpp b/src/messages/layouts/messagelayout.cpp index 334bfc0c1..f24ce1739 100644 --- a/src/messages/layouts/messagelayout.cpp +++ b/src/messages/layouts/messagelayout.cpp @@ -132,7 +132,7 @@ void MessageLayout::paint(QPainter &painter, int y, int messageIndex, Selection if (!pixmap) { #ifdef Q_OS_MACOS pixmap = - new QPixmap((int)(this->container.width * painter.device()->devicePixelRatioF()), + new QPixmap((int)(this->container.getWidth() * painter.device()->devicePixelRatioF()), (int)(this->container.getHeight() * painter.device()->devicePixelRatioF())); pixmap->setDevicePixelRatio(painter.device()->devicePixelRatioF()); #else