[gimp] app: fix duplication of GeglParamSpecSeed, we missed its limits before
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix duplication of GeglParamSpecSeed, we missed its limits before
- Date: Mon, 16 Apr 2018 22:13:14 +0000 (UTC)
commit 2da25576c3a14bba06ddb395e8e1858a0c0a9beb
Author: Michael Natterer <mitch gimp org>
Date: Tue Apr 17 00:12:01 2018 +0200
app: fix duplication of GeglParamSpecSeed, we missed its limits before
(which are probably never used, but still)
app/core/gimpparamspecs-duplicate.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpparamspecs-duplicate.c b/app/core/gimpparamspecs-duplicate.c
index 595c9f8..135f230 100644
--- a/app/core/gimpparamspecs-duplicate.c
+++ b/app/core/gimpparamspecs-duplicate.c
@@ -160,11 +160,20 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
}
else if (GEGL_IS_PARAM_SPEC_SEED (pspec))
{
+ GParamSpecUInt *spec = G_PARAM_SPEC_UINT (pspec);
+ GeglParamSpecSeed *gspec = GEGL_PARAM_SPEC_SEED (pspec);
+
copy = gegl_param_spec_seed (pspec->name,
g_param_spec_get_nick (pspec),
g_param_spec_get_blurb (pspec),
pspec->flags |
GIMP_CONFIG_PARAM_SERIALIZE);
+
+ G_PARAM_SPEC_UINT (copy)->minimum = spec->minimum;
+ G_PARAM_SPEC_UINT (copy)->maximum = spec->maximum;
+
+ GEGL_PARAM_SPEC_SEED (copy)->ui_minimum = gspec->ui_minimum;
+ GEGL_PARAM_SPEC_SEED (copy)->ui_maximum = gspec->ui_maximum;
}
else if (G_IS_PARAM_SPEC_INT (pspec))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]