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

It sometimes invalidated entire rows/columns of tiles too much.
This commit is contained in:
Michael Natterer 2012-12-15 19:25:42 +01:00
parent af7916b3e6
commit 12a9f01139
1 changed files with 2 additions and 2 deletions

View File

@ -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++)
{