From 804c5cdb26f2626d92f08acf8b0f76ae618ecc50 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 10 Aug 2012 14:03:01 +0000 Subject: Enlarge the damaged area - SL #3794 When drawing stars (and arrows) and the line size is big, the damaged area calculated was not enough and the shape was croped. This patch add line_size * 2 to the calculated area based in the points. Signed-off-by: Gonzalo Odiard --- (limited to 'Area.py') diff --git a/Area.py b/Area.py index cd4e35a..fbf2327 100644 --- a/Area.py +++ b/Area.py @@ -460,10 +460,10 @@ class Area(Gtk.DrawingArea): max_y = max_y + hr else: size = self.tool['line size'] - min_x = min_x - size - min_y = min_y - size - max_x = max_x + size - max_y = max_y + size + min_x = min_x - size * 2 + min_y = min_y - size * 2 + max_x = max_x + size * 2 + max_y = max_y + size * 2 return (min_x, min_y, max_x - min_x, max_y - min_y) def mousemove(self, widget, event): -- cgit v0.9.1