Diffusion Krita fdc983ada1e9

Fix an assert when force-autosaving the image right during the stroke

Authored by dkazakov on Oct 14 2019, 2:45 PM.

Description

Fix an assert when force-autosaving the image right during the stroke

When we make a clone of a shape layer, we must ensure that no updates
are initiated after cloning the image. We used to block updates at
the level of KisShapeLayerCanvas, but it works only when we save/clone
the image from the GUI thread. When we save it from the worker thread,
KoShapeManager queues the event into the GUI events queue, so an update
comes asynchronously.

To resolve this issue, the patch moves locking from KisShapeLayerCanvas
to KoShapeManager. We must ensure that there is no compressors nor queues
between the adding code and blocking code.

BUG:412835

Details

Committed
dkazakovTue, Nov 5, 5:18 PM
Parents
R37:32d27e262ceb: Fix crash when using Contionous Selection tool with Feather option
Branches
Unknown
Tags
Unknown