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++
Use the correct color space to reset the cache in generator layer
Maciej Jesionowskid9195f26b1a1
diff --git a/libs/image/generator/kis_generator_layer.cpp b/libs/image/generator/kis_generator_layer.cppindex a26e870786..79c24ce73f 100644--- a/libs/image/generator/kis_generator_layer.cpp+++ b/libs/image/generator/kis_generator_layer.cpp@@ -123,7 +123,7 @@ void KisGeneratorLayer::requestUpdateJobsWithStroke(KisStrokeId strokeId, KisFilif (filterConfig != m_d->preparedForFilter) {locker.unlock();- resetCacheWithoutUpdate(this->paintDevice()->colorSpace());+ resetCacheWithoutUpdate(image->colorSpace());locker.relock();}