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.
This commit is contained in:
Michael Natterer 2013-11-03 15:21:22 +01:00
parent 771293d402
commit 61c2ef40f7
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ gimp_canvas_passe_partout_get_extents (GimpCanvasItem *item)
inner = GIMP_CANVAS_ITEM_CLASS (parent_class)->get_extents (item);
cairo_region_subtract (outer, inner);
cairo_region_xor (outer, inner);
return outer;
}