[gimp] app, libgimp: validate procedure arguments taking class heritage into…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app, libgimp: validate procedure arguments taking class heritage into…
- Date: Tue, 20 Apr 2021 22:15:13 +0000 (UTC)
commit 60b9c5633e14860643524b313260ab9daee1c55d
Author: Jehan <jehan girinstud io>
Date: Wed Apr 21 00:00:32 2021 +0200
app, libgimp: validate procedure arguments taking class heritage into…
… account.
app/pdb/gimpprocedure.c | 2 +-
libgimp/gimpprocedure.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/pdb/gimpprocedure.c b/app/pdb/gimpprocedure.c
index f228acb825..535eda83cf 100644
--- a/app/pdb/gimpprocedure.c
+++ b/app/pdb/gimpprocedure.c
@@ -839,7 +839,7 @@ gimp_procedure_validate_args (GimpProcedure *procedure,
GType arg_type = G_VALUE_TYPE (arg);
GType spec_type = G_PARAM_SPEC_VALUE_TYPE (pspec);
- if (arg_type != spec_type)
+ if (! g_type_is_a (arg_type, spec_type))
{
if (return_vals)
{
diff --git a/libgimp/gimpprocedure.c b/libgimp/gimpprocedure.c
index 13c72b25f1..60b7e662f7 100644
--- a/libgimp/gimpprocedure.c
+++ b/libgimp/gimpprocedure.c
@@ -1970,7 +1970,7 @@ gimp_procedure_validate_args (GimpProcedure *procedure,
GType arg_type = G_VALUE_TYPE (arg);
GType spec_type = G_PARAM_SPEC_VALUE_TYPE (pspec);
- if (arg_type != spec_type)
+ if (! g_type_is_a (arg_type, spec_type))
{
if (return_vals)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]