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 Knife Tool on merging different shapes
Agata Cacko5fcca78c0835
diff --git a/libs/global/kis_algebra_2d.cpp b/libs/global/kis_algebra_2d.cppindex 593ba0d684..0edc407d33 100644--- a/libs/global/kis_algebra_2d.cpp+++ b/libs/global/kis_algebra_2d.cpp@@ -1907,7 +1907,7 @@ VectorPath mergeShapesWithGutter(const VectorPath& shape1, const VectorPath& shaauto appendFrom = [] (QList<VPoint>& res, int start, int end, const VectorPath& shape) {start = qBound(0, start, shape.segmentsCount() - 1);- end = qBound(0, end, shape.segmentsCount() - 1);+ end = qBound(0, end, shape.segmentsCount());for (int i = start; i < end; i++) {QList<VPoint> segment = shape.segmentAt(i);