Crop tool's Allow growing does not fill with transparency if modified layer does not have an alpha channel
Environment/Versions
- GIMP version: 2.10.30
- Package: Debian Sid package
- Operating System: Linux
Description of the bug
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Choose the Crop tool
- Make sure Current Layer only and Allow growing are active, Fill with is set to Transparency
- Use the crop tool to make an image layer larger; the layer does not have an alpha channel and is smaller than the canvas for this example
Expected result:
- The added area is filled with transparency
This likely requires adding an alpha channel to the cropped layer if it doesn't have one yet. This might also matter if the Fill with setting is set to Pattern and a Pattern with transparent parts is chosen.
A possible approach might be to add an alpha channel unconditionally if the crop tool is used.
Actual result:
- The added area is filled with the currently active background color
Edited by Michael Schumacher