[gimp] file-tiff-load: Move var declaration and remove dead assignment
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-tiff-load: Move var declaration and remove dead assignment
- Date: Tue, 11 Oct 2011 05:03:30 +0000 (UTC)
commit b832b282585a4827dc6b107bf47ec777ceeebf00
Author: Mukund Sivaraman <muks banu com>
Date: Tue Oct 11 10:12:48 2011 +0530
file-tiff-load: Move var declaration and remove dead assignment
plug-ins/common/file-tiff-load.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/file-tiff-load.c b/plug-ins/common/file-tiff-load.c
index 50cb9ba..2c8f9dc 100644
--- a/plug-ins/common/file-tiff-load.c
+++ b/plug-ins/common/file-tiff-load.c
@@ -579,7 +579,6 @@ load_image (const gchar *filename,
gboolean is_bw;
gint i, j;
- gint ilayer;
gboolean worst_case = FALSE;
TiffSaveVals save_vals;
@@ -606,10 +605,10 @@ load_image (const gchar *filename,
/* We will loop through the all pages in case of multipage TIFF
and load every page as a separate layer. */
- ilayer = 0;
-
for (li = 0; li < pages->n_pages; li++)
{
+ gint ilayer;
+
TIFFSetDirectory (tif, pages->pages[li]);
ilayer = pages->pages[li];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]