Bug 461727

Summary: [Nightly] Layer thumbnail distort preview proportion when erase in blank area
Product: [Applications] krita Reporter: Protoniv <ss93078>
Component: Layer StackAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ss93078
Priority: NOR    
Version: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Bug Depends on: 459273    
Bug Blocks:    
Attachments: Reproduce when erase something

Description Protoniv 2022-11-12 13:25:04 UTC
Created attachment 153688 [details]
Reproduce when erase something

The thumbnail now does not change its boundary when erase, but still take those transparent pixel made by eraser into account, so the preview distort.

This happened after 5.2.0-prealpha-55b758bc2f (Windows) and 5.2.0-prealpha-ebe496e16f (Appimage) nightly build
Seems after the patch in bug 459273

STEPS TO REPRODUCE
1. Create a document, on the transparent layer, draw a circle on the left
2. switch to eraser, erase on the right side of canvas
3. thumbnail distort, pushing to left
Comment 1 amyspark 2022-11-12 15:50:34 UTC
Dmitry, can you have a look?
Comment 2 Dmitry Kazakov 2022-11-17 07:38:46 UTC
Git commit b67e2556bb2944f56c0a4ca9bd77a1f29f8e05df by Dmitry Kazakov.
Committed on 17/11/2022 at 07:38.
Pushed by dkazakov into branch 'master'.

Fix aspect ratio of the layer thumbnails

M  +2    -1    libs/image/kis_paint_device_cache.h

https://invent.kde.org/graphics/krita/commit/b67e2556bb2944f56c0a4ca9bd77a1f29f8e05df