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 KisCloneLayer::needRectOnSourceForMasks not to cause infinite loops
Dmitry Kazakovf50e31e3bf1e
diff --git a/libs/image/kis_async_merger.cpp b/libs/image/kis_async_merger.cppindex 6794d2afc7..840fa8cee8 100644--- a/libs/image/kis_async_merger.cpp+++ b/libs/image/kis_async_merger.cpp@@ -147,8 +147,6 @@ public:QRect srcRect = m_updateRect.translated(-layer->x(), -layer->y());QRegion prepareRegion(srcRect);- prepareRegion -= m_cropRect;-/*** If a clone has complicated masks, we should prepare additional@@ -159,6 +157,7 @@ public:prepareRegion += needRectOnSource;}+ prepareRegion -= m_cropRect;if (srcLayer.isNull()) {return true;}