Diffusion Krita ebc8a43ce07b

BUG:366713 Fix using the temporary target

Authored by rempt on Aug 13 2016, 9:12 AM.

Description

BUG:366713 Fix using the temporary target

A line like

QRect rect = temporaryTarget() ? temporaryTarget()->extent() : QRect();

is dangerous, since the paint device might be gone between the check
and the use. It's better to get a local shared pointer to the paint
device and check that.

Details

Committed
remptAug 13 2016, 9:14 AM
Parents
R37:cdd42948590a: Fix wrong aspect ratio fixing in Spray Brush
Branches
Unknown
Tags
Unknown