Diffusion Krita cd02553f552f

Make KoStopGradient::colorAt threadsave

Authored by rempt on Sep 2 2016, 2:06 PM.

Description

Make KoStopGradient::colorAt threadsave

Sneakily, the "buffer" variable was made a class variable. Marking
it mutable allows us to change it from a const function, which hides
the fact that this is global data (doubly hidden by there not being
an m_ prefix), which makes the const function thread unsafe.

Details

Committed
woltheravSep 2 2016, 4:23 PM
Parents
R37:904cc82dbdc3: Also revert the patch
Branches
Unknown
Tags
Unknown