initialize the pages[] array with the page sequence for non-niteractive

2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * 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.


svn path=/trunk/; revision=22316
This commit is contained in:
Mukund Sivaraman 2007-04-24 19:05:15 +00:00 committed by Mukund Sivaraman
parent 3a229d3631
commit 80f436aa5f
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-04-25 Mukund Sivaraman <muks@mukund.org>
* 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 <muks@mukund.org>
* plug-ins/common/tiff.c: fixed an issue where the page selection

View File

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