Commit 0edbb058 authored by Ell's avatar Ell

app: short-circuit GimpProjection bounds-changed handler if disjoint

In gimp_projection_projectable_bounds_changed(), bail early by
calling gimp_projection_projectable_structure_changed() instead, if
the new bounds don't intersect the old bounds.

(cherry picked from commit c6b8a421)
parent 53afeb11
......@@ -1127,6 +1127,15 @@ gimp_projection_projectable_bounds_changed (GimpProjectable *projectable,
if (x == old_x && y == old_y && w == old_w && h == old_h)
return;
if (! gimp_rectangle_intersect (x, y, w, h,
old_x, old_y, old_w, old_h,
NULL, NULL, NULL, NULL))
{
gimp_projection_projectable_structure_changed (projectable, proj);
return;
}
dx = old_x - x;
dy = old_y - y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment