Commit 359c00a7 authored by Michael Natterer's avatar Michael Natterer 😴

Bug 760658 - on rotated convas, marching ants are re-drawn incorrectly

selection_zoom_segs(): if the canvas is rotated, don't optimize
segment drawing by clamping it to the canvas widget boundaries.
parent ba39a5a5
......@@ -325,12 +325,15 @@ selection_zoom_segs (Selection *selection,
0.0, 0.0);
for (i = 0; i < n_segs; i++)
{
if (! selection->shell->rotate_transform)
{
dest_segs[i].x1 = CLAMP (dest_segs[i].x1, -1, xclamp);
dest_segs[i].y1 = CLAMP (dest_segs[i].y1, -1, yclamp);
dest_segs[i].x2 = CLAMP (dest_segs[i].x2, -1, xclamp);
dest_segs[i].y2 = CLAMP (dest_segs[i].y2, -1, yclamp);
}
/* If this segment is a closing segment && the segments lie inside
* the region, OR if this is an opening segment and the segments
......
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