From d3d1a0acdda0914b41c72f42ef6a56b98abec4ba Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 3 Jan 2009 06:00:46 +0000 Subject: [PATCH] Fixed order of test in render string count svn: r11560 --- src/DataViews/GrampletView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index 92dd7bb5b..f31d569e9 100644 --- a/src/DataViews/GrampletView.py +++ b/src/DataViews/GrampletView.py @@ -682,7 +682,7 @@ class GuiGramplet: while i < len(text): if ord(text[i]) > 126: t = 0 - while ord(text[i]) > 126 and i < len(text): + while i < len(text) and ord(text[i]) > 126: i += 1 t += 1 r += t/2