diff --git a/ChangeLog b/ChangeLog index a9904931bc..fd9b6abddd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-25 Mukund Sivaraman + + * plug-ins/common/tiff.c: initialize the pages[] array with + the page sequence for non-niteractive runs. Otherwise it'll + simply load N copies of page 0. + 2007-04-25 Mukund Sivaraman * plug-ins/common/tiff.c: fixed an issue where the page selection diff --git a/plug-ins/common/tiff.c b/plug-ins/common/tiff.c index 2e34f13546..4847e68147 100644 --- a/plug-ins/common/tiff.c +++ b/plug-ins/common/tiff.c @@ -584,7 +584,10 @@ load_dialog (const gchar *filename, TiffSelectedPages *pages) if (run_mode != GIMP_RUN_INTERACTIVE) { - pages->pages = g_new0 (gint, pages->n_pages); + pages->pages = g_new (gint, pages->n_pages); + + for (i = 0; i < pages->n_pages; i++) + pages->pages[i] = i; return TRUE; }