Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix color-to-alpha filter giving NaNs in FP spaces
Dmitry Kazakovaa5258c0cfd1
diff --git a/plugins/filters/colors/kis_color_to_alpha.cpp b/plugins/filters/colors/kis_color_to_alpha.cppindex f33b9332a1..bfd2ed0d4f 100644--- a/plugins/filters/colors/kis_color_to_alpha.cpp+++ b/plugins/filters/colors/kis_color_to_alpha.cpp@@ -53,6 +53,10 @@ inline void inverseOver(const int numChannels, const int *channelIndex,channel_type *dst, const channel_type *baseColor,qreal dstOpacity){+ if (qFuzzyIsNull(dstOpacity)) {+ return;+ }+for (int i = 0; i < numChannels; i++) {const int idx = channelIndex[i];dst[idx] =