Commit 12a9f011 authored by Michael Natterer's avatar Michael Natterer 😴

app: fix off-by-one over-invalidation in GimpTileHandlerProjection

It sometimes invalidated entire rows/columns of tiles too much.
parent af7916b3
......@@ -311,8 +311,8 @@ gimp_tile_handler_projection_invalidate (GimpTileHandlerProjection *projection,
tile_x1 = x / projection->tile_width;
tile_y1 = y / projection->tile_height;
tile_x2 = (x + width) / projection->tile_width;
tile_y2 = (y + height) / projection->tile_height;
tile_x2 = (x + width - 1) / projection->tile_width;
tile_y2 = (y + height - 1) / projection->tile_height;
for (tile_y = tile_y1; tile_y <= tile_y2; tile_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