app, pdb, plug-ins: lower Spread limit for Distort

Distort can call plug-in-spread with Spread of 1000 which causes an error.
This limits it to 512 which is the highest allowed by gegl:noise-spread
This commit is contained in:
Anders Jonsson 2024-04-03 22:40:42 +02:00 committed by Alx Sa
parent d0d63efac9
commit 134c354a9e
3 changed files with 5 additions and 5 deletions

View File

@ -9103,13 +9103,13 @@ register_plug_in_compat_procs (GimpPDB *pdb)
g_param_spec_double ("spread-amount-x",
"spread amount x",
"Horizontal spread amount",
0, 200, 0,
0, 512, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_double ("spread-amount-y",
"spread amount y",
"Vertical spread amount",
0, 200, 0,
0, 512, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);

View File

@ -4449,9 +4449,9 @@ HELP
desc => 'Input image (unused)' },
{ name => 'drawable', type => 'drawable',
desc => 'Input drawable' },
{ name => 'spread_amount_x', type => '0 <= float <= 200',
{ name => 'spread_amount_x', type => '0 <= float <= 512',
desc => 'Horizontal spread amount' },
{ name => 'spread_amount_y', type => '0 <= float <= 200',
{ name => 'spread_amount_y', type => '0 <= float <= 512',
desc => 'Vertical spread amount' }
);

View File

@ -111,7 +111,7 @@
SF-IMAGE "The image" 0
SF-DRAWABLE "The layer" 0
SF-ADJUSTMENT _"_Threshold (bigger 1<-->254 smaller)" '(127 1 254 1 10 0 0)
SF-ADJUSTMENT _"_Spread" '(8 0 1000 1 10 0 1)
SF-ADJUSTMENT _"_Spread" '(8 0 512 1 10 0 1)
SF-ADJUSTMENT _"_Granularity (1 is low)" '(4 1 25 1 10 0 1)
SF-ADJUSTMENT _"S_mooth" '(2 1 150 1 10 0 1)
SF-TOGGLE _"Smooth hor_izontally" TRUE