From 0a42c6b4bd7af1e445fe224b20b57e0501d70321 Mon Sep 17 00:00:00 2001 From: Ell Date: Mon, 10 Apr 2017 09:51:40 -0400 Subject: [PATCH] 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 fee7882c14..0482d0f347 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 ac706a9922..60c2492e88 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" } );