make sure pixelration is not 0

fix rendering

Change-Id: Idb5716ded802f4b6e68dabd82449053726977641
This commit is contained in:
Marco Martin 2015-01-14 17:06:02 +01:00
parent d96a8505d9
commit 5d62905a03
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ ProgressBarStyle {
readonly property string imagePath: "widgets/bar_meter_horizontal"
readonly property real implicitHeight: barSvg.preferredHeight * Math.floor(units.devicePixelRatio)
readonly property real implicitHeight: barSvg.preferredHeight * Math.max(1, Math.floor(units.devicePixelRatio))
PlasmaCore.Svg {
id: barSvg

View File

@ -63,7 +63,7 @@ QtQuickControlStyle.SliderStyle {
id: groove
imagePath: "widgets/slider"
prefix: "groove"
height: implicitHeight * Math.floor(units.devicePixelRatio)
height: implicitHeight * Math.max(1, Math.floor(units.devicePixelRatio))
PlasmaCore.FrameSvgItem {
id: highlight