Commit 91a5d956 authored by Fjen Undso's avatar Fjen Undso
Browse files

c.py: fix set value functions

parent d79ac17d
......@@ -75,7 +75,7 @@ class NumberRange:
def set(self, value):
self.value = min(value, self.max)
self.value = max(value, self.min)
self.value = max(self.value, self.min)
self.draw()
def incr(self):
......@@ -202,7 +202,7 @@ class ProgressBar:
def set(self, value):
self.value = min(value, self.max)
self.value = max(value, 0)
self.value = max(self.value, 0)
self.draw()
def incr(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment