[pypy-svn] r68881 - pypy/branch/logging2/pypy/tool

arigo at codespeak.net arigo at codespeak.net
Sat Oct 31 19:24:49 CET 2009


Author: arigo
Date: Sat Oct 31 19:24:48 2009
New Revision: 68881

Modified:
   pypy/branch/logging2/pypy/tool/logparser.py
Log:
Don't drawn the vertical light/dark lines in case of width 3 either.


Modified: pypy/branch/logging2/pypy/tool/logparser.py
==============================================================================
--- pypy/branch/logging2/pypy/tool/logparser.py	(original)
+++ pypy/branch/logging2/pypy/tool/logparser.py	Sat Oct 31 19:24:48 2009
@@ -94,9 +94,9 @@
             color = getcolor(category1)
             if firstx1 is None:
                 firstx1 = x1
-            if x2 <= x1 + 1:
-                x2 = x1 + 1   # not wide enough: don't show start and end lines
-            else:
+            if x2 <= x1:
+                x2 = x1 + 1   # minimal width
+            elif x2 >= x1 + 4:
                 draw.line([x1, y1+1, x1, y2-1], fill=getlightercolor(color))
                 x1 += 1
                 x2 -= 1



More information about the Pypy-commit mailing list