diff --git a/src/declarativeimports/plasmacomponents/qml/styles/SliderStyle.qml b/src/declarativeimports/plasmacomponents/qml/styles/SliderStyle.qml index f6305ccd3..0d0323779 100644 --- a/src/declarativeimports/plasmacomponents/qml/styles/SliderStyle.qml +++ b/src/declarativeimports/plasmacomponents/qml/styles/SliderStyle.qml @@ -84,8 +84,8 @@ QtQuickControlStyle.SliderStyle { width: 1 ; height: 3 y: repeater.height //Position ticklines from styleData.handleWidth to width - styleData.handleWidth/2 - //position them at an handle width increment - x: styleData.handleWidth / 2 + index * ((repeater.width - styleData.handleWidth) / (repeater.count-1)) + //position them at an half handle width increment + x: styleData.handleWidth / 2 + index * ((repeater.width - styleData.handleWidth) / (repeater.count>1 ? repeater.count-1 : 1)) } } }