Perspective shadow: error when blur radius >500
Environment/Versions
- GIMP version: 2.10.36, present in GIMP_2_99_18-260-ge4a4063f
- Package: Flatpak and built from source
- Operating System: Linux
Description of the bug
The Blur radius
in the Perspective
plug-in can be set in the interval 0 to 1024. However, setting it to more than 500 causes an error and closes open undo groups.
scriptfu-Message: 13:10:20.323: Error while executing script-fu-perspective-shadow:
Error: Invalid value 501.000000 for argument 3: expected value between 0.000000 and 500.000000
This is the only error message in current git master.
The 2.10.36 flatpak shows one more error, so that might be related to the underlying cause (but is not shown on master anymore):
Error: Procedure execution of plug-in-gauss-rle failed on invalid input arguments: Procedure 'plug-in-gauss-rle' has been called with value '501,000000' for argument 'radius' (#4, type gdouble). This value is out of range.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open an image
- Filters->Light and Shadow->Perspective
- Set Blur radius greater than 500, click OK
…
Expected result: Setting blur radius working
Actual result: Plugin error, undo groups closing