Did something break with the selection?

Silvio Heinrich plassy at web.de
Fri Apr 29 16:43:10 CEST 2011


On 04/29/2011 03:11 PM, Cyrille Berger Skott wrote:
> I think we need to change line 83 of KoCompositeOpAlphaBase to
> srcAlpha = KoColorSpaceMaths<quint8, channels_type>::multiply(*mask, srcAlpha,
> opacity);
>
> And KoColorSpaceMaths::multiply(_T a, _Tdst b, _Tdst c) to:
>
> inline static _Tdst multiply(_T a, _Tdst b, _Tdst c) {
>      return (dst_compositetype(a)*b*c) /
> (dst_compositetype(KoColorSpaceMathsTraits<_Tdst>::unitValue) *
> KoColorSpaceMathsTraits<_T>::unitValue);
> }
>
> And it should fix it.
Whoo!! Thank you!
I think I would have spend a lifetime searching for this :D
I committed the fix.

Thx


More information about the kimageshop mailing list