[BUG] Group layer thumbnail not clipped under certain situation

As shown in the image above, the thumbnail of group layer is trying to display the whole canvas instead of the just-fit bounding box of its content layers which is not desired and is less clear. The thumbnail image is also deformed as it seems trying to scratch the image to match the thumbnail area.

I’ve just tried it and I’m not seeing that:

Unless I add content to the red layer and then erase that content:


But that also affects the red layer thumbnail. So, a puzzle.

I found the steps to reproduce the bug. When initially the group thumbnail is showing the correct bounding box, just select a child layer and “Edit” > “Fill with background layer”. After that, even if “Edit” > “Clear” that filled layer, the group thumbnail will still showing the whole canvas.
I notice that deleting that cleared layer will temporarily fix the group thumbnail but inserting a new empty layer afterward would also reproduce the thumbnail with full canvas bounding box.

Found another bug:

If I transform mirror a single pixel layer horizontally will change its own thumbnail from local bounding box to full canvas. I guess a step to invalidating the thumbnail bounding box is missing after some layer operations.

I think there has been some recent work on dealing with unused/empty tiles but I can’t remember exactly what or where.
You can try the Nightly Build to see if it’s been fixed:
https://binary-factory.kde.org/job/Krita_Nightly_Windows_Build/
or: https://binary-factory.kde.org/job/Krita_Nightly_Appimage_Build/

If not, you can make a formal bug report here: https://bugs.kde.org/
Sign up and sign in are needed.
Please post a link here to any bug report you make about this.

1 Like

Reported: https://bugs.kde.org/show_bug.cgi?id=419830

1 Like