Commit a659efe5 authored by Guido van Rossum's avatar Guido van Rossum

Patch by kragen@pobox.com: When tracing is turned on, lines shorter

than a pixel don't get drawn at all. If you're building long curves
made of such lines, this is a bad thing.
parent 8e2b6b5c
...@@ -221,6 +221,8 @@ class RawPen: ...@@ -221,6 +221,8 @@ class RawPen:
self._canvas.coords(item, x0, y0, x, y) self._canvas.coords(item, x0, y0, x, y)
self._canvas.update() self._canvas.update()
self._canvas.after(10) self._canvas.after(10)
# in case nhops==0
self._canvas.coords(item, x0, y0, x1, y1)
self._canvas.itemconfigure(item, arrow="none") self._canvas.itemconfigure(item, arrow="none")
except Tkinter.TclError: except Tkinter.TclError:
# Probably the window was closed! # Probably the window was closed!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment