Commit f658ea40 authored by Massimo Valentini's avatar Massimo Valentini Committed by Michael Schumacher

Bug 777403 - Calling (file-png-get-defaults) crashes the file-png plug-in

commit 21bed1e2

moved the lines

+  run_mode = param[0].data.d_int32;
+

without considering the plug-in registers parameterless
procedures
parent 1d0fa313
......@@ -428,13 +428,14 @@ run (const gchar *name,
GimpParam **return_vals)
{
static GimpParam values[10];
GimpRunMode run_mode;
GimpRunMode run_mode = GIMP_RUN_NONINTERACTIVE;
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
gint32 image_ID;
gint32 drawable_ID;
GError *error = NULL;
run_mode = param[0].data.d_int32;
if (nparams)
run_mode = param[0].data.d_int32;
INIT_I18N ();
gegl_init (NULL, NULL);
......
Markdown is supported
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