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:
parent
3a229d3631
commit
80f436aa5f
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user