From 4d8f9c55c0efaf02bb3037130febc1a459052116 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 1 Oct 2014 03:15:51 +0200 Subject: [PATCH] Floor devicePixelRatio in ProgressBar before use This matches what happens in the C++ SVG code Change-Id: Ide914751d3ba18d7e4d62c4872651998bc226900 --- src/declarativeimports/plasmacomponents/qml/ProgressBar.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml b/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml index 3159ea7e7..b872c976c 100644 --- a/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml +++ b/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml @@ -83,8 +83,8 @@ Item { id: background anchors.centerIn: parent - width: _isVertical ? Math.round(barSvg.elementSize("hint-bar-size").width * units.devicePixelRatio) : parent.width - height: _isVertical ? parent.height : Math.round(barSvg.elementSize("hint-bar-size").height * units.devicePixelRatio) + width: _isVertical ? barSvg.elementSize("hint-bar-size").width * Math.floor(units.devicePixelRatio) : parent.width + height: _isVertical ? parent.height : barSvg.elementSize("hint-bar-size").height * Math.floor(units.devicePixelRatio) imagePath: barSvg.imagePath prefix: "bar-inactive"