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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/krita/-/commit/5d5719a
                   |                            |bba4717019d2ed6491431672b10
                   |                            |8a0d98
         Resolution|---                         |FIXED

--- Comment #1 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 5d5719abba4717019d2ed6491431672b108a0d98 by Dmitry Kazakov, on
behalf of Grum 999.
Committed on 04/04/2024 at 12:34.
Pushed by dkazakov into branch 'master'.

Fix grids glitches when subdivision style is solid

Bug has been introduced with commit 764719791a4ce6887aedc9d92777f3c4a03198c6
(to fix bug 461912)

>From Qt's documentation, setDashOffset() method implicitly converts the style
of the pen to Qt::CustomDashLine.
When current line style is solid, it seems the custom dash line is not soid
anymore and this generate glitches.

To avoid the problem, need to to check if style is solid or not before updating
dash offset (update only if not solid).

In addition, the original commit only 'fixed' dash offset problem for
subdivision but not for main grid division; this commit fix both (main &
subdivision) grids lines.

M  +13   -3    libs/ui/canvas/kis_grid_decoration.cpp

https://invent.kde.org/graphics/krita/-/commit/5d5719abba4717019d2ed6491431672b108a0d98

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

Reply via email to