Commit 2acf162a authored by Clinton Rogers's avatar Clinton Rogers

This fixes #3146 by slightly increasing the size of the 'dirty' region when...

This fixes #3146 by slightly increasing the size of the 'dirty' region when preparing to erase the clip box from the previous frame.
parent e391cf48
......@@ -335,10 +335,14 @@ public abstract class PhotoCanvas {
public void erase_vertical_line(int x, int y, int height) {
default_ctx.save();
// Ticket #3146 - artifacting when moving the crop box or
// enlarging it from the lower right.
// We now no longer subtract one from the height before choosing
// a region to erase.
default_ctx.set_operator(Cairo.Operator.SOURCE);
default_ctx.set_source_surface(scaled, scaled_position.x, scaled_position.y);
default_ctx.rectangle(scaled_position.x + x, scaled_position.y + y,
1, height - 1);
1, height);
default_ctx.fill();
default_ctx.restore();
......
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