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

Dmitry Kazakov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/-/commit/5cdf332 |hics/krita/-/commit/28d8437
                   |b1d44100c5e36d8ba33f4b17a43 |cdd6379ba3a83ebfb5a36d8345c
                   |db8f38                      |12ef45

--- Comment #3 from Dmitry Kazakov <[email protected]> ---
Git commit 28d8437cdd6379ba3a83ebfb5a36d8345c12ef45 by Dmitry Kazakov.
Committed on 16/09/2025 at 10:54.
Pushed by dkazakov into branch 'release/5.2.13'.

Fix brush preview outlines being aligned based on incorrect bounding box.

The root cause of this bug is that the class `KisOptimizedBrushOutline` 
does not keep track of the original 'center' of the brush. It instead 
uses the center of the non-transparent pixels in the brush.

The patch just stores the bounds explicitly in `KisOptimizedBrushOutline`
to resolve this issue


(cherry picked from commit 036427c473a8243ea96f61200c54de8f180380e7)

46c4af7c Save bounding box of outline for image-based brushes
32b73b36 Fix formatting and add missing include
7ddbc7ab Use const reference for new constructor argument
b980bc3c BUG:477164 Update for review comments

Co-authored-by: Jeff Witthuhn <[email protected]>

M  +1    -1    libs/brush/kis_brush.cpp
M  +9    -3    libs/image/brushengine/KisOptimizedBrushOutline.cpp
M  +4    -2    libs/image/brushengine/KisOptimizedBrushOutline.h

https://invent.kde.org/graphics/krita/-/commit/28d8437cdd6379ba3a83ebfb5a36d8345c12ef45

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to