summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-18 22:06:32 +0200
committerLiang Qi <liang.qi@qt.io>2017-04-18 22:06:32 +0200
commit0b48e0821b9691ff369ad7b401cbf1f63c6397a9 (patch)
tree808aa2a15208666f1ae88bdeed171ae7d1beb537 /src/plugins
parente4038c6a3696973aca6db7f5442a8fb00a9b5bab (diff)
parent02ed4c65618b0f27b9ccb6867ab4d633612415c8 (diff)
downloadqtsvg-0b48e0821b9691ff369ad7b401cbf1f63c6397a9.tar.gz
Merge remote-tracking branch 'origin/5.8' into 5.9v5.9.0-beta4v5.9.0-beta3
Change-Id: I4b41cae71f5a5f734a7e3bb8b95130b0cb35e0ac
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));
}