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

Dmitry Kazakov <dimul...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/krita/-/commit/6324ca4
                   |                            |4615fa33957c9d96fdfb16b58d4
                   |                            |fe6674
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 6324ca44615fa33957c9d96fdfb16b58d4fe6674 by Dmitry Kazakov, on
behalf of Freya Lupen.
Committed on 31/07/2024 at 06:33.
Pushed by dkazakov into branch 'master'.

Fix scaling down image with 1px grid spacing

Scaling the image scales the grid along with it. If the scale
was less than 50%, 1px grid spacing would be rounded down to 0,
causing modulo by zero, or triggering an infinite loop warning in
KisGridDecoration::drawDecoration (since effectiveSize == 0).
So make sure the minimum spacing after transform is 1px.

M  +3    -0    libs/ui/canvas/kis_grid_config.cpp

https://invent.kde.org/graphics/krita/-/commit/6324ca44615fa33957c9d96fdfb16b58d4fe6674

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

Reply via email to