fixed check for number of return values.

2004-11-18  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_thumbnail): fixed check for
	number of return values.
This commit is contained in:
Sven Neumann 2004-11-18 21:31:20 +00:00 committed by Sven Neumann
parent 86a8c17025
commit 5c002d9b33
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2004-11-18 Sven Neumann <sven@gimp.org>
* app/file/file-open.c (file_open_thumbnail): fixed check for
number of return values.
2004-11-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/postscript.c: speed up loading of multi-page

View File

@ -215,7 +215,7 @@ file_open_thumbnail (Gimp *gimp,
proc = procedural_db_lookup (gimp, file_proc->thumb_loader);
if (proc && proc->num_args >= 2 && proc->num_values >= 2)
if (proc && proc->num_args >= 2 && proc->num_values >= 1)
{
GimpPDBStatusType status;
Argument *args;
@ -243,7 +243,7 @@ file_open_thumbnail (Gimp *gimp,
status = return_vals[0].value.pdb_int;
image_id = return_vals[1].value.pdb_int;
if (proc->num_values >= 4)
if (proc->num_values >= 3)
{
*image_width = MAX (0, return_vals[2].value.pdb_int);
*image_height = MAX (0, return_vals[3].value.pdb_int);