[gimp] pdb: fix input range of context-set-brush-size
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pdb: fix input range of context-set-brush-size
- Date: Mon, 10 Apr 2017 14:01:46 +0000 (UTC)
commit 0a42c6b4bd7af1e445fe224b20b57e0501d70321
Author: Ell <ell_se yahoo com>
Date: Mon Apr 10 09:51:40 2017 -0400
pdb: fix input range of context-set-brush-size
app/pdb/context-cmds.c | 2 +-
tools/pdbgen/pdb/context.pdb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/pdb/context-cmds.c b/app/pdb/context-cmds.c
index fee7882..0482d0f 100644
--- a/app/pdb/context-cmds.c
+++ b/app/pdb/context-cmds.c
@@ -3606,7 +3606,7 @@ register_context_procs (GimpPDB *pdb)
g_param_spec_double ("size",
"size",
"Brush size in pixels",
- 0, G_MAXDOUBLE, 0,
+ 1, 10000, 1,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
diff --git a/tools/pdbgen/pdb/context.pdb b/tools/pdbgen/pdb/context.pdb
index ac706a9..60c2492 100644
--- a/tools/pdbgen/pdb/context.pdb
+++ b/tools/pdbgen/pdb/context.pdb
@@ -1016,7 +1016,7 @@ sub context_set_brush_size {
&ejs_pdb_misc('2012', '2.8');
@inargs = (
- { name => "size", type => "0 < float",
+ { name => "size", type => "1 <= float <= 10000",
desc => "Brush size in pixels" }
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]