Commit 4339fb30 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

fixed emboss on small images (bug #168022).

2005-02-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/emboss.c: fixed emboss on small images (bug #168022).
parent f568dd4d
2005-02-21 Sven Neumann <sven@gimp.org>
* plug-ins/common/emboss.c: fixed emboss on small images (bug #168022).
2005-02-21 Sven Neumann <sven@gimp.org>
* libgimpthumb/gimpthumb-utils.c (gimp_thumb_init): workaround for
......
......@@ -357,7 +357,7 @@ emboss (GimpDrawable *drawable,
height = y2 - y1;
}
bypp = drawable->bpp;
p_update = height / 20;
p_update = MAX (1, height / 20);
rowsize = width * bypp;
has_alpha = gimp_drawable_has_alpha (drawable->drawable_id);
......@@ -391,7 +391,7 @@ emboss (GimpDrawable *drawable,
for (y = 0; y < height - 2; y++)
{
if ((y % p_update == 0) && !preview)
if (! preview && (y % p_update == 0))
gimp_progress_update ((gdouble) y / (gdouble) height);
gimp_pixel_rgn_get_rect (&src, srcbuf, x1, y1+y, width, 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment