From 242de7a18dcb8e03def2a3293c74e6c13cafdebb Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Thu, 03 Jan 2013 21:02:46 +0000 Subject: Fix artifact using line tool - SL #4363 Signed-off-by: Gonzalo Odiard --- diff --git a/Desenho.py b/Desenho.py index 04fc602..50ac4fa 100644 --- a/Desenho.py +++ b/Desenho.py @@ -117,12 +117,15 @@ class Desenho: else: ctx = widget.drawing_ctx + ctx.save() + ctx.new_path() ctx.set_line_width(widget.tool['line size']) ctx.set_line_cap(cairo.LINE_CAP_ROUND) ctx.set_source_rgba(*widget.tool['cairo_stroke_color']) ctx.move_to(widget.oldx, widget.oldy) ctx.line_to(coords[0], coords[1]) ctx.stroke() + ctx.restore() # TODO: clip widget.queue_draw() -- cgit v0.9.1