From 1ad786f37cb3a808e532198c6d2f6157941a22ee Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sun, 18 Feb 2007 06:16:26 +0000 Subject: [PATCH] Moved an invariant (in the last changeset to this file) out of the loop. 2007-02-18 Mukund Sivaraman * plug-ins/common/png.c: Moved an invariant (in the last changeset to this file) out of the loop. svn path=/trunk/; revision=21935 --- ChangeLog | 5 +++++ plug-ins/common/png.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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);