X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FInput.py;h=4d3c8a1db9437d4f1d65c143d500bc6d3947512b;hb=21ca87a50a252d81f2f07d1596b33511e98a3c0d;hp=3c09ab9fe459ec066755020b00da2caa4392eb6a;hpb=96a171a3f8daf3ebae2990c1bfa10bdeb0c5e87c;p=vuplus_dvbapp diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py index 3c09ab9..4d3c8a1 100644 --- a/lib/python/Components/Input.py +++ b/lib/python/Components/Input.py @@ -116,7 +116,7 @@ class Input(VariableText, HTMLComponent, GUIComponent, NumericalTextInput): self.allmarked = False if self.type == self.TEXT: self.timeout() - if self.Text[self.currPos] == "9" or self.Text[self.currPos] == " ": + if self.currPos == len(self.Text) or self.Text[self.currPos] == "9" or self.Text[self.currPos] == " ": newNumber = "0" else: newNumber = str(int(self.Text[self.currPos]) + 1) @@ -127,7 +127,7 @@ class Input(VariableText, HTMLComponent, GUIComponent, NumericalTextInput): self.allmarked = False if self.type == self.TEXT: self.timeout() - if self.Text[self.currPos] == "0" or self.Text[self.currPos] == " ": + if self.currPos == len(self.Text) or self.Text[self.currPos] == "0" or self.Text[self.currPos] == " ": newNumber = "9" else: newNumber = str(int(self.Text[self.currPos]) - 1)