Moved an invariant (in the last changeset to this file) out of the loop.

2007-02-18  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/png.c: Moved an invariant (in the last
          changeset to this file) out of the loop.


svn path=/trunk/; revision=21935
This commit is contained in:
Mukund Sivaraman 2007-02-18 06:16:26 +00:00 committed by Mukund Sivaraman
parent 4107f0faf8
commit 1ad786f37c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-02-18 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/png.c: Moved an invariant (in the last
changeset to this file) out of the loop.
2007-02-17 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/tinyscheme/scheme-private.h: Add define for

View File

@ -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);