[SailfishDevel] Division by zero in Slider.qml
Marcin M.
marmistrzmar at gmail.com
Thu Jan 16 18:07:55 UTC 2014
In the second case it's not 0, but 10.
--
Marcin
2014/1/16 Hendrik Borghorst <hendrikborghorst at gmail.com>
> Hello folks,
>
> I've noticed some strange behaviour in Silica Silder. If you set
> minimumValue=maximumValue , the handle gets invisible and cannot get
> activated
> again.
>
> 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)
>
> greetings
> _______________________________________________
> SailfishOS.org Devel mailing list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140116/e32affdc/attachment.html>
More information about the Devel
mailing list