do not pass an invalid drawable to the plug-in, just omit the argument.

2006-04-26  Sven Neumann  <sven@gimp.org>

	* app/actions/vectors-commands.c
	(vectors_selection_to_vectors_cmd_callback): do not pass an
	invalid drawable to the plug-in, just omit the argument.
	Fixes bug #339759.
This commit is contained in:
Sven Neumann 2006-04-26 12:26:32 +00:00 committed by Sven Neumann
parent 0937112af2
commit 0884dfeacc
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2006-04-26 Sven Neumann <sven@gimp.org>
* app/actions/vectors-commands.c
(vectors_selection_to_vectors_cmd_callback): do not pass an
invalid drawable to the plug-in, just omit the argument.
Fixes bug #339759.
2006-04-26 Sven Neumann <sven@gimp.org>
* app/paint-funcs/scale-funcs.c: code cleanup, moved variables into

View File

@ -330,13 +330,11 @@ vectors_selection_to_vectors_cmd_callback (GtkAction *action,
display = gimp_context_get_display (action_data_get_context (data));
/* plug-in arguments as if called by <Image>/Filters/... */
args = gimp_procedure_get_arguments (procedure);
gimp_value_array_truncate (args, 3);
gimp_value_array_truncate (args, 2);
g_value_set_int (&args->values[0], GIMP_RUN_INTERACTIVE);
gimp_value_set_image (&args->values[1], image);
gimp_value_set_drawable (&args->values[2], NULL /* unused */);
g_value_set_int (&args->values[0], GIMP_RUN_INTERACTIVE);
gimp_value_set_image (&args->values[1], image);
gimp_procedure_execute_async (procedure, image->gimp,
action_data_get_context (data),