mistyped relation @111

This commit is contained in:
legikaloz 2012-08-09 00:13:30 +03:00
parent 5ed599e630
commit f712354df7
1 changed files with 1 additions and 1 deletions

View File

@ -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)