if no tiles have been allocated, there's no need to invalidate any. Should
2007-11-30 Sven Neumann <sven@gimp.org> * app/base/tile-manager.c (tile_manager_invalidate_area): if no tiles have been allocated, there's no need to invalidate any. Should fix bug #500178. svn path=/trunk/; revision=24244
This commit is contained in:

committed by
Sven Neumann

parent
ef175fc433
commit
870ccda6f7
@ -1,3 +1,9 @@
|
||||
2007-11-30 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/base/tile-manager.c (tile_manager_invalidate_area): if no
|
||||
tiles have been allocated, there's no need to invalidate any.
|
||||
Should fix bug #500178.
|
||||
|
||||
2007-11-29 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpprojection.c (gimp_projection_idle_render_init):
|
||||
|
@ -492,6 +492,10 @@ tile_manager_invalidate_area (TileManager *tm,
|
||||
gint i;
|
||||
gint j;
|
||||
|
||||
/* if no tiles have been allocated, there's no need to invalidate any */
|
||||
if (! tm->tiles)
|
||||
return;
|
||||
|
||||
for (i = y; i < (y + h); i += (TILE_HEIGHT - (i % TILE_HEIGHT)))
|
||||
for (j = x; j < (x + w); j += (TILE_WIDTH - (j % TILE_WIDTH)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user