gimp_layer_get_composite_space(): returns 0 rather than a more informative 1 or 2
Environment/Versions
- GIMP version: self-build, and flatpak 2.99.16
- Operating System: Linux
Description of the bug
Technically it's not wrong, but the default value 'auto' is a disappointing result.
Reproduction
Is the bug reproducible? Yes
Reproduction steps:
- Start GIMP
- Make a new image
- Script-fu Console, (gimp-layer-get-composite-space 2), -> 0 = auto
- How to tell what mode 'auto' is using?
Expected result: Script-Fu returns mode being used by auto, not 'auto'
Actual result: 'Auto' from Fu
I don't understand the auto setting, why not simply have two settings rather than three and an ambiguous state.
Edited by Mark Sweeney