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

Boudewijn Rempt <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://commits.kde.org/kri |https://commits.kde.org/kri
                   |ta/f32ac392795422d7e735181b |ta/616b4d0aee8bc9ec60a59a4e
                   |ab7664c93a4e6db2            |abdfcbcb558abf82

--- Comment #5 from Boudewijn Rempt <[email protected]> ---
Git commit 616b4d0aee8bc9ec60a59a4eabdfcbcb558abf82 by Boudewijn Rempt, on
behalf of Dennis Ranke.
Committed on 03/04/2018 at 11:18.
Pushed by rempt into branch 'krita/4.0'.

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

(cherry picked from commit f32ac392795422d7e735181bab7664c93a4e6db2)

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

https://commits.kde.org/krita/616b4d0aee8bc9ec60a59a4eabdfcbcb558abf82

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

Reply via email to