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 |https://invent.kde.org/grap
                   |hics/krita/-/commit/6324ca4 |hics/krita/-/commit/6d6d980
                   |4615fa33957c9d96fdfb16b58d4 |897856731e54c0d64ab5170a9b2
                   |fe6674                      |7ba434

--- Comment #3 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 6d6d980897856731e54c0d64ab5170a9b27ba434 by Dmitry Kazakov.
Committed on 31/07/2024 at 06:34.
Pushed by dkazakov into branch 'krita/5.2'.

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.


(cherry picked from commit 6324ca44615fa33957c9d96fdfb16b58d4fe6674)

Co-authored-by: Freya Lupen <penguinflyer2...@gmail.com>

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

https://invent.kde.org/graphics/krita/-/commit/6d6d980897856731e54c0d64ab5170a9b27ba434

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

Reply via email to