[gimp/gimp-2-8] Bug 711329 - Artifacts on crop tool's passepartout when set to "allow growing"
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 711329 - Artifacts on crop tool's passepartout when set to "allow growing"
- Date: Sun, 3 Nov 2013 14:26:17 +0000 (UTC)
commit be45e402183886dc1a8d345486de5301b8b8d32d
Author: Michael Natterer <mitch gimp org>
Date: Sun Nov 3 15:21:22 2013 +0100
Bug 711329 - Artifacts on crop tool's passepartout when set to "allow growing"
Calculate GimpCanvasPassepartout's extents using a cairo_region_xor()
of the crop rectangle and the image extents, instead of a
cairo_region_subtract(). This fixes the artifacts and has the nice
side effect that the passepartout now colors both the parts of the
image that will be removed *and* the parts of the image that will be
newly added.
(cherry picked from commit 61c2ef40f711f0e452bd8baa67813c454e5a7658)
app/display/gimpcanvaspassepartout.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpcanvaspassepartout.c b/app/display/gimpcanvaspassepartout.c
index 7bb653d..3d4dc1c 100644
--- a/app/display/gimpcanvaspassepartout.c
+++ b/app/display/gimpcanvaspassepartout.c
@@ -97,7 +97,7 @@ gimp_canvas_passe_partout_get_extents (GimpCanvasItem *item,
inner = GIMP_CANVAS_ITEM_CLASS (parent_class)->get_extents (item, shell);
- cairo_region_subtract (outer, inner);
+ cairo_region_xor (outer, inner);
return outer;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]