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 gradient generation in generateSampleSheetsLong()
Dmitry Kazakov05fb1623edef
diff --git a/libs/pigment/tests/TestCompositeOpInversion.cpp b/libs/pigment/tests/TestCompositeOpInversion.cppindex 371adf1a2c..797788c0ef 100644--- a/libs/pigment/tests/TestCompositeOpInversion.cpp+++ b/libs/pigment/tests/TestCompositeOpInversion.cpp@@ -1533,8 +1533,8 @@ void TestCompositeOpInversion::generateSampleSheetsLong()for (int y = 0; y < patchHeight; y++) {for (int x = 0; x < patchWidth; x++) {- KoColor dst = createColor(csF32, dstGradient(qreal(y) / patchHeight));- KoColor src = createColor(csF32, srcGradient(qreal(x) / patchWidth));+ KoColor dst = createColor(csF32, dstGradient(qreal(y) / (patchHeight - 1)));+ KoColor src = createColor(csF32, srcGradient(qreal(x) / (patchWidth - 1)));opF32->composite(dst.data(), 0, src.data(), 0,0, 0,