From 0768628ac94bf4b2a79110b618a3da195317d257 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 30 Mar 2006 09:59:27 +0000 Subject: [PATCH] actually increment the tile counter used to limit the number of progress 2006-03-30 Sven Neumann * app/base/siox.c (siox_foreground_extract): actually increment the tile counter used to limit the number of progress updates. --- ChangeLog | 5 +++++ app/base/siox.c | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 89ae8151b9..5543811123 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-30 Sven Neumann + + * app/base/siox.c (siox_foreground_extract): actually increment + the tile counter used to limit the number of progress updates. + 2006-03-30 Michael Natterer * app/pdb/procedural_db.c (procedural_db_free_entry): also diff --git a/app/base/siox.c b/app/base/siox.c index ed802adc2c..2f5832d7b3 100644 --- a/app/base/siox.c +++ b/app/base/siox.c @@ -941,7 +941,9 @@ siox_foreground_extract (SioxState *state, { gint i = 0; - for (pixels = 0, n = 0; pr != NULL; pr = pixel_regions_process (pr)) + for (pixels = 0, n = 0; + pr != NULL; + pr = pixel_regions_process (pr), n++) { const guchar *src = srcPR.data; const guchar *map = mapPR.data; @@ -976,7 +978,9 @@ siox_foreground_extract (SioxState *state, { gint i = 0; - for (pixels = 0, n = 0; pr != NULL; pr = pixel_regions_process (pr)) + for (pixels = 0, n = 0; + pr != NULL; + pr = pixel_regions_process (pr), n++) { const guchar *src = srcPR.data; const guchar *map = mapPR.data; @@ -1012,7 +1016,9 @@ siox_foreground_extract (SioxState *state, gint i = 0; gint j = 0; - for (pixels = 0, n = 0; pr != NULL; pr = pixel_regions_process (pr)) + for (pixels = 0, n = 0; + pr != NULL; + pr = pixel_regions_process (pr), n++) { const guchar *src = srcPR.data; const guchar *map = mapPR.data;