Added bugfix from David Neary to fix #9156.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2000-12-18 Daniel Egger <egger@suse.de>
|
||||||
|
|
||||||
|
* plug-ins/ifcompose/ifscompose.c:
|
||||||
|
Added patch from David Neary to fix calulations.
|
||||||
|
Fixes bug #9156.
|
||||||
|
|
||||||
2000-12-18 Sven Neumann <sven@gimp.org>
|
2000-12-18 Sven Neumann <sven@gimp.org>
|
||||||
Jens Lautenbacher <jtl@gimp.org>
|
Jens Lautenbacher <jtl@gimp.org>
|
||||||
|
|
||||||
|
|||||||
@ -1354,7 +1354,10 @@ ifs_compose (GimpDrawable *drawable)
|
|||||||
|
|
||||||
num_bands = ceil((gdouble)(width*height*SQR(ifsvals.subdivide)*5)
|
num_bands = ceil((gdouble)(width*height*SQR(ifsvals.subdivide)*5)
|
||||||
/ (1024 * ifsvals.max_memory));
|
/ (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)
|
if (band_height > height)
|
||||||
band_height = height;
|
band_height = height;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user