Hack fix for length of unicode marked-up text

svn: r11559
This commit is contained in:
Doug Blank 2009-01-02 14:19:34 +00:00
parent cb92251995
commit b54d472fc6

View File

@ -682,7 +682,7 @@ class GuiGramplet:
while i < len(text): while i < len(text):
if ord(text[i]) > 126: if ord(text[i]) > 126:
t = 0 t = 0
while ord(text[i]) > 126: while ord(text[i]) > 126 and i < len(text):
i += 1 i += 1
t += 1 t += 1
r += t/2 r += t/2