Crop tool fills newly created area with transparency instead of selected fill <type> when 'Allow growing' is enabled
Environment/Versions
- GIMP version: 2.10.23 and 2.99 master
- Package: both self-built
- Operating System: Xubuntu 20.04 (probably all)
Description of the bug
When 'allow growing' selected, crop tool fills area with transparency instead of selected fill .
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Reset FG/BG color selector (press
d
) - Create new image
- Pick any shade of red color as active
foreground
color. - Pick
Crop tool
- Reset tool options
- Select
Delete cropped pixels
andAllow growing
- Select
Fill with
Foreground color
- Create rectangle with WxH -> 500x500 (approximately)
- Place rectangle center at 0,0 (so top left is approximately -250, -250)
- Click inside of rectangle to crop and grow image
Expected result:
Image of approximately 500 x 500 pixels with 3 of 4 quadrants filled with red
(top left, top right, bottom left) and one quadrant (bottom right) filled with white.
Actual result:
3 of 4 quadrants filled with transparency regardless of selected fill <type>
.
Additional information
At the moment value of Fill with
selector applies only when you grow layer, e.g. when Current layer only
option is active.
In my opinion result of cropping with allow growing
option enabled should be the same result after applying resize canvas
command when Resize layers
option is set to All layers
and Fill with
set to foreground color.
If it's expected behavior, maybe we should move Fill with
selector under Current layer only
. It makes no sense otherwise.