[SailfishDevel] Division by zero in Slider.qml

Hendrik Borghorst hendrikborghorst at gmail.com
Wed Jan 15 23:30:59 UTC 2014

Hello folks,

I've noticed some strange behaviour in Silica Silder. If you set 
minimumValue=maximumValue , the handle gets invisible and cannot get activated 

if you've a look at (except from Slider.qml) you'll see:

    function _updateHighlightToValue() {
        highlight.x = (sliderValue - minimumValue) / (maximumValue - 
minimumValue) * _grooveWidth - highlight.width/2 + leftMargin
that there is a case where an zero divison is done. For example ( min=Max=0 or 
min=-5 and max=5)


More information about the Devel mailing list