[meld] linkmap: Cairo will implicitly join strokes, so clean up these



commit 98d0ef2896a3216a9f4de766984cb3d26a1bf077
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Apr 25 08:07:39 2014 +1000

    linkmap: Cairo will implicitly join strokes, so clean up these

 meld/linkmap.py |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/meld/linkmap.py b/meld/linkmap.py
index 699d955..be8082f 100644
--- a/meld/linkmap.py
+++ b/meld/linkmap.py
@@ -85,18 +85,14 @@ class LinkMap(Gtk.DrawingArea):
             if (t0 < 0 and t1 < 0) or (t0 > height and t1 > height):
                 if f0 == f1:
                     continue
-                context.move_to(x_steps[0], f0 - 0.5)
                 context.arc(x_steps[0], f0 - 0.5 + radius, radius, -q_rad, 0)
-                context.rel_line_to(0, f1 - f0 - radius * 2)
                 context.arc(x_steps[0], f1 - 0.5 - radius, radius, 0, q_rad)
                 context.close_path()
             elif (f0 < 0 and f1 < 0) or (f0 > height and f1 > height):
                 if t0 == t1:
                     continue
-                context.move_to(x_steps[3], t0 - 0.5)
                 context.arc_negative(x_steps[3], t0 - 0.5 + radius, radius,
                                      -q_rad, q_rad * 2)
-                context.rel_line_to(0, t1 - t0 - radius * 2)
                 context.arc_negative(x_steps[3], t1 - 0.5 - radius, radius,
                                      q_rad * 2, q_rad)
                 context.close_path()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]