Hardcoded offset values of call to 'gimp-image-crop' are overridden, when script is called via menue
Environment/Versions
- GIMP version: 2.10.36
- Package: 2.10.36-4 (pacman)
- Operating System: Arch Linux
Description of the bug
A small script calling gimp-image-crop
with hard coded values (and offset values both not 0) is used to crop an image.
Call via procedure browser works as expected.
Calling the script via a Menue overrides the (hard-coded!) offset values of the call to gimp-image-crop
.
Reproduction
The bug is reproducible.
Reproduction steps:
- Install the script in GIMP
- Open a valid testimage
- Call the procedure `crop-specific' on that image (image number as parameter) and compare the result
- Undo the cropping
- Call the procedure via the File Menue and compare the result
Expected result: In both cases the cropped image contains the 100 x 100 pixel wide part of the original image, starting at offset (100, 100).
Actual result: Call via Procedure browser gives the expected result. Call via Menue gives the 100 x 100 pixels wide part of the original image, but with offset (0, 0) instead of (100, 100).
Edited by Oliver Bandel