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 onion skins rendering on layers with a transform masks
Dmitry Kazakovce7a8c5fcadf
diff --git a/libs/image/kis_transform_mask.cpp b/libs/image/kis_transform_mask.cppindex 583a7eab44..6cb770246b 100644--- a/libs/image/kis_transform_mask.cpp+++ b/libs/image/kis_transform_mask.cpp@@ -401,9 +401,13 @@ void KisTransformMask::recalculateStaticImage()* updateProjection() is assuming that the requestedRect takes* into account all the change rects of all the masks. Usually,* this work is done by the walkers.+ *+ * NOTE: we should use layer's exact bounds, not its original+ * paint device's exact bounds; it is necessary because the layer+ * may have onion skins, which are a part of layer's bounds.*/QRect requestedRect =- parentLayer->changeRect(parentLayer->original()->exactBounds());+ parentLayer->changeRect(parentLayer->exactBounds());QRect bounds;