Fix off-by-one error that resulted in missed characters

This commit is contained in:
Andrew M. Kuchling 2008-01-19 23:44:39 +00:00
parent 1cc98af8a1
commit 0e65fe4b90
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class Textbox:
if stop == 0 and self.stripspaces:
continue
for x in range(self.maxx+1):
if self.stripspaces and x == stop:
if self.stripspaces and x > stop:
break
result = result + chr(ascii.ascii(self.win.inch(y, x)))
if self.maxy > 0: