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 kis_auto_brush_test. The current code preserves the shape size during 90 degree rotations.
Elena Sagalaeva7aadb8f74dfb
diff --git a/libs/brush/tests/kis_auto_brush_test.cpp b/libs/brush/tests/kis_auto_brush_test.cppindex b706e602cc..6ad4e19171 100644--- a/libs/brush/tests/kis_auto_brush_test.cpp+++ b/libs/brush/tests/kis_auto_brush_test.cpp@@ -97,8 +97,8 @@ void KisAutoBrushTest::testDabSize()dabSizeHelper(a, "Double", KisDabShape(2.0, 1.0, 0.0), 20, 10);dabSizeHelper(a, "Halve", KisDabShape(0.5, 1.0, 0.0), 5, 3);dabSizeHelper(a, "180 deg", KisDabShape(1.0, 1.0, M_PI), 10, 5);- dabSizeHelper(a, "90 deg", KisDabShape(1.0, 1.0, M_PI_2), 6, 10); // ceil rule- dabSizeHelper(a, "-90 deg", KisDabShape(1.0, 1.0, -M_PI_2), 6, 11); // ceil rule+ dabSizeHelper(a, "90 deg", KisDabShape(1.0, 1.0, M_PI_2), 5, 10);+ dabSizeHelper(a, "-90 deg", KisDabShape(1.0, 1.0, -M_PI_2), 5, 10);dabSizeHelper(a, "45 deg", KisDabShape(1.0, 1.0, 0.25 * M_PI), 11, 11);dabSizeHelper(a, "2x, 45d", KisDabShape(2.0, 1.0, 0.25 * M_PI), 22, 22);dabSizeHelper(a, "0.5x, 45d", KisDabShape(0.5, 1.0, 0.25 * M_PI), 6, 6);