diff --git a/ChangeLog b/ChangeLog index 6d8bc973f2..91d5eaef23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-18 Mukund Sivaraman + + * plug-ins/common/png.c: Moved an invariant (in the last + changeset to this file) out of the loop. + 2007-02-17 Kevin Cozens * plug-ins/script-fu/tinyscheme/scheme-private.h: Add define for diff --git a/plug-ins/common/png.c b/plug-ins/common/png.c index 0bbc19fb83..587a056105 100644 --- a/plug-ins/common/png.c +++ b/plug-ins/common/png.c @@ -968,6 +968,7 @@ load_image (const gchar *filename, error_data.width = info->width; error_data.height = info->height; error_data.bpp = bpp; + error_data.pixel_rgn = &pixel_rgn; png_set_error_fn (pp, &error_data, on_read_error, NULL); @@ -992,7 +993,6 @@ load_image (const gchar *filename, error_data.begin = begin; error_data.end = end; error_data.num = num; - error_data.pixel_rgn = &pixel_rgn; png_read_rows (pp, pixels, NULL, num);