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++
Added fallback code for reading dithering settings from old format files.
Jakub Nowakowskie810461923bc
diff --git a/plugins/generators/gradient/KisGradientGeneratorConfiguration.h b/plugins/generators/gradient/KisGradientGeneratorConfiguration.hindex 9905e8e787..99b98cac2f 100644--- a/plugins/generators/gradient/KisGradientGeneratorConfiguration.h+++ b/plugins/generators/gradient/KisGradientGeneratorConfiguration.h@@ -323,9 +323,9 @@ public:static inline KisGradientPainter::enumGradientDither stringToDither(QString const & ditherString,KisGradientPainter::enumGradientDither defaultDither = KisGradientPainter::GradientDitherNone){- if (ditherString == "none") {+ if (ditherString == "none" || ditherString == "false") {return KisGradientPainter::GradientDitherNone;- } else if (ditherString == "blue_noise") {+ } else if (ditherString == "blue_noise" || ditherString == "true") {return KisGradientPainter::GradientDitherBlueNoise;} else if (ditherString == "bayer2") {return KisGradientPainter::GradientDitherBayer2;