mirror of https://github.com/kivy/kivy.git
mistyped relation @111
This commit is contained in:
parent
5ed599e630
commit
f712354df7
|
@ -108,7 +108,7 @@ class Slider(Widget):
|
|||
def set_norm_value(self, value):
|
||||
vmin = self.min
|
||||
val = value * (self.max - vmin) + vmin
|
||||
if self.step > 0:
|
||||
if self.step == 0:
|
||||
self.value = val
|
||||
else:
|
||||
self.value = min(round((val-vmin)/self.step)*self.step,self.max)
|
||||
|
|
Loading…
Reference in New Issue