Diffusion Krita f32ac3927954

fix precise paint device wrapper readRects in wrap around mode

Authored by dranke on Mar 28 2018, 1:53 PM.

Description

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.

BUG: 392312

Reviewers: Krita, dkazakov

Reviewed By: Krita, dkazakov

Subscribers: rempt, alvinhochun, dkazakov

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

Details

Committed
dkazakovMar 28 2018, 2:32 PM
Reviewer
Krita
Differential Revision
D11689: fix precise paint device wrapper readRects in wrap around mode
Parents
R37:6f38b190315e: Set the default pixel grid threshold to 2400% zoom
Branches
Unknown
Tags
Unknown