[gimp/soc-2011-seamless-clone2] app: fix off-by-one over-invalidation in GimpTileHandlerProjection
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] app: fix off-by-one over-invalidation in GimpTileHandlerProjection
- Date: Wed, 8 May 2013 14:52:51 +0000 (UTC)
commit 3bb59356639f652d32b510b5e957ad6ef6d39578
Author: Michael Natterer <mitch gimp org>
Date: Sat Dec 15 19:25:42 2012 +0100
app: fix off-by-one over-invalidation in GimpTileHandlerProjection
It sometimes invalidated entire rows/columns of tiles too much.
app/gegl/gimptilehandlerprojection.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/gegl/gimptilehandlerprojection.c b/app/gegl/gimptilehandlerprojection.c
index c2a4808..1566a39 100644
--- a/app/gegl/gimptilehandlerprojection.c
+++ b/app/gegl/gimptilehandlerprojection.c
@@ -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++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]