[gimp] libgimp: argh, broke most plug-ins...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: argh, broke most plug-ins...
- Date: Thu, 29 Aug 2019 11:49:28 +0000 (UTC)
commit 33601f7a876d8a35acab879cfeaab11c350b2f3c
Author: Michael Natterer <mitch gimp org>
Date: Thu Aug 29 13:48:16 2019 +0200
libgimp: argh, broke most plug-ins...
Need to push the current procedure around the entire body of
gimp_plug_in_proc_run_internal() because
_gimp_gp_params_to_value_array() needs access to proxy objects now.
libgimp/gimpplugin.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgimp/gimpplugin.c b/libgimp/gimpplugin.c
index 50942b8dab..965e80246a 100644
--- a/libgimp/gimpplugin.c
+++ b/libgimp/gimpplugin.c
@@ -1159,15 +1159,15 @@ gimp_plug_in_proc_run_internal (GimpPlugIn *plug_in,
GimpValueArray *arguments;
GimpValueArray *return_values = NULL;
+ gimp_plug_in_push_procedure (plug_in, procedure);
+
arguments = _gimp_gp_params_to_value_array (NULL,
NULL, 0,
proc_run->params,
proc_run->nparams,
FALSE, FALSE);
- gimp_plug_in_push_procedure (plug_in, procedure);
return_values = gimp_procedure_run (procedure, arguments);
- gimp_plug_in_pop_procedure (plug_in, procedure);
gimp_value_array_unref (arguments);
@@ -1176,6 +1176,8 @@ gimp_plug_in_proc_run_internal (GimpPlugIn *plug_in,
proc_return->params = _gimp_value_array_to_gp_params (return_values, TRUE);
gimp_value_array_unref (return_values);
+
+ gimp_plug_in_pop_procedure (plug_in, procedure);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]