summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorBłażej Szczygieł <spaz16@wp.pl>2017-03-26 13:55:23 +0200
committerBłażej Szczygieł <spaz16@wp.pl>2017-03-27 17:36:45 +0000
commit02ed4c65618b0f27b9ccb6867ab4d633612415c8 (patch)
tree91a58f2bb27c4d584cef2c721a9d5d5fa12ef6fd /src/plugins
parentf8137c81d38dc05f333afeaffc0f46a38a1e2f06 (diff)
downloadqtsvg-02ed4c65618b0f27b9ccb6867ab4d633612415c8.tar.gz
QSvgIconEngine: Paint correct size if device pixel ratio is fractional5.8
Use method which returns qreal. It is available since Qt 5.6. Task-number: QTBUG-59729 Change-Id: Ifc1a101c8dd837597c35ce14f0314218d2882501 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp b/src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp
index 53e9a57..2644326 100644
--- a/src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp
+++ b/src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp
@@ -254,7 +254,7 @@ void QSvgIconEngine::paint(QPainter *painter, const QRect &rect,
{
QSize pixmapSize = rect.size();
if (painter->device())
- pixmapSize *= painter->device()->devicePixelRatio();
+ pixmapSize *= painter->device()->devicePixelRatioF();
painter->drawPixmap(rect, pixmap(pixmapSize, mode, state));
}