mirror of https://github.com/GNOME/gimp.git
app, pdb: set string arguments to "" *after* the GFile.
Thanks to Wormnest for pushing me to look further. Since gimp-file-save is actually redirecting the call to another procedure (save proc for the specific format) which might have more arguments, including string arguments. When it finds any, it sets it to an empty string "" (which I guess is ok as "default value when we don't know what to put there"). The previous code would not hurt. Starting at the fourth argument (GFile), it would just do nothing, then continue with the firth and further. Still, starting directly at the fifth arg is the proper code for this.
This commit is contained in:
parent
0f6e43f0b8
commit
4b9dc93d08
|
@ -262,7 +262,7 @@ file_save_invoker (GimpProcedure *procedure,
|
|||
g_value_transform (gimp_value_array_index (args, 4),
|
||||
gimp_value_array_index (new_args, 4));
|
||||
|
||||
for (i = 4; i < proc->num_args; i++)
|
||||
for (i = 5; i < proc->num_args; i++)
|
||||
if (G_IS_PARAM_SPEC_STRING (proc->args[i]))
|
||||
g_value_set_static_string (gimp_value_array_index (new_args, i), "");
|
||||
|
||||
|
|
|
@ -283,7 +283,7 @@ HELP
|
|||
g_value_transform (gimp_value_array_index (args, 4),
|
||||
gimp_value_array_index (new_args, 4));
|
||||
|
||||
for (i = 4; i < proc->num_args; i++)
|
||||
for (i = 5; i < proc->num_args; i++)
|
||||
if (G_IS_PARAM_SPEC_STRING (proc->args[i]))
|
||||
g_value_set_static_string (gimp_value_array_index (new_args, i), "");
|
||||
|
||||
|
|
Loading…
Reference in New Issue