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

Dmitry Kazakov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://commits.kde.org/kri
                   |                            |ta/f32ac392795422d7e735181b
                   |                            |ab7664c93a4e6db2

--- Comment #3 from Dmitry Kazakov <[email protected]> ---
Git commit f32ac392795422d7e735181bab7664c93a4e6db2 by Dmitry Kazakov, on
behalf of Dennis Ranke.
Committed on 28/03/2018 at 14:32.
Pushed by dkazakov into branch 'master'.

fix precise paint device wrapper readRects in wrap around mode

Summary:
KisPrecisePaintDeviceWrapper::readRects clamped the input rects to the device
extents without regard to the wrap around mode. So if a rect is passed that is
outside the image bounds, it is clamped to be zero sized and nothing is read
instead of reading from the wrapped position.

This causes all color smudge brushes to be broken when used outside the image
bounds in wrap around mode.

This change adds a case for wrap around mode which correctly wraps the rect
before clamping.

Reviewers: #krita, dkazakov

Reviewed By: #krita, dkazakov

Subscribers: rempt, alvinhochun, dkazakov

Differential Revision: https://phabricator.kde.org/D11689

M  +14   -4    libs/image/KisPrecisePaintDeviceWrapper.cpp

https://commits.kde.org/krita/f32ac392795422d7e735181bab7664c93a4e6db2

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

Reply via email to