Coffee Stain script runs into type error
Environment/Versions
- GIMP version: GIMP_2_99_16-661-g4fc9daed
- Package: Built from source
- Operating System: Linux
Description of the bug
Stricter validation in GIMP_2_99_16-661-g4fc9daed makes the coffee-stain script error out:
expected type: integer for argument 1 to gimp-context-set-gradient
(Before this commit the script caused a segfault, so validation was clearly needed.)
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open an image
- Filters->Decor->Coffee Stain
- Click OK
…
Expected result: Filter making a coffee stain
Actual result: Filter errors out
Additional information
In error console:
GIMP Warning
Plug-in 'Coffee Stain' left image undo in inconsistent state, closing open undo groups.
In the terminal:
scriptfu-Message: 23:47:02.384: Error while executing script-fu-coffee-stain:
Error: in script, expected type: integer for argument 1 to gimp-context-set-gradient