mirror of https://github.com/GNOME/gimp.git
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:
parent
771293d402
commit
61c2ef40f7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue