Commit 5c002d9b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent 86a8c170
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
......
......@@ -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;
......@@ -240,10 +240,10 @@ file_open_thumbnail (Gimp *gimp,
if (filename)
g_free (filename);
status = return_vals[0].value.pdb_int;
image_id = return_vals[1].value.pdb_int;
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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment