[gimp] plug-ins: fix #6859 Hurl random pct limits in PDB are incorrect



commit 825067eab72c381746c6b4e02b0369a5b6759183
Author: Ian Martins <ianxm jhu edu>
Date:   Tue May 11 06:27:26 2021 -0400

    plug-ins: fix #6859 Hurl random pct limits in PDB are incorrect
    
    (cherry picked from commit a038051bb8708cf0b1e6a0ba313e5e80f6f3ab93)

 app/pdb/plug-in-compat-cmds.c | 2 +-
 pdb/groups/plug_in_compat.pdb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/pdb/plug-in-compat-cmds.c b/app/pdb/plug-in-compat-cmds.c
index 5a1e61f0d8..2d25fa25c6 100644
--- a/app/pdb/plug-in-compat-cmds.c
+++ b/app/pdb/plug-in-compat-cmds.c
@@ -8253,7 +8253,7 @@ register_plug_in_compat_procs (GimpPDB *pdb)
                                g_param_spec_double ("rndm-pct",
                                                     "rndm pct",
                                                     "Randomization percentage",
-                                                    1.0, 100.0, 1.0,
+                                                    0.0, 100.0, 0.0,
                                                     GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                g_param_spec_double ("rndm-rcount",
diff --git a/pdb/groups/plug_in_compat.pdb b/pdb/groups/plug_in_compat.pdb
index aff1335331..7573f278cc 100644
--- a/pdb/groups/plug_in_compat.pdb
+++ b/pdb/groups/plug_in_compat.pdb
@@ -3479,7 +3479,7 @@ HELP
          desc => 'Input image (unused)' },
        { name => 'drawable', type => 'drawable',
          desc => 'Input drawable' },
-        { name => 'rndm_pct', type => '1.0 <= float <= 100.0',
+        { name => 'rndm_pct', type => '0.0 <= float <= 100.0',
           desc => 'Randomization percentage' },
         { name => 'rndm_rcount', type => '1.0 <= float <= 100.0',
           desc => 'Repeat count' },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]