From fcc29b05dcbf8b14916bba195d77d24e2384b75f Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Mon, 18 Dec 2000 18:01:12 +0000 Subject: [PATCH] Added bugfix from David Neary to fix #9156. --- ChangeLog | 6 ++++++ plug-ins/ifscompose/ifscompose.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1550038384..a8f2cadf9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-12-18 Daniel Egger + + * plug-ins/ifcompose/ifscompose.c: + Added patch from David Neary to fix calulations. + Fixes bug #9156. + 2000-12-18 Sven Neumann Jens Lautenbacher diff --git a/plug-ins/ifscompose/ifscompose.c b/plug-ins/ifscompose/ifscompose.c index f4f218fc6b..981e4f01af 100644 --- a/plug-ins/ifscompose/ifscompose.c +++ b/plug-ins/ifscompose/ifscompose.c @@ -1354,7 +1354,10 @@ ifs_compose (GimpDrawable *drawable) num_bands = ceil((gdouble)(width*height*SQR(ifsvals.subdivide)*5) / (1024 * ifsvals.max_memory)); - band_height = height / num_bands; + band_height = (height / num_bands) + 1; + /* For bug #9156 - adding 1 guarantees that band_height*num_bands>height + * band_height automatically got rounded down, resulting in a diff + * of a few pixels. */ if (band_height > height) band_height = height;