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++
Set color model properly when using lab mode.
Wolthera van Hövell tot Westerflier0ae764429b05
diff --git a/libs/widgets/KisVisualColorModel.cpp b/libs/widgets/KisVisualColorModel.cppindex e85951777e..6098aafaf1 100644--- a/libs/widgets/KisVisualColorModel.cpp+++ b/libs/widgets/KisVisualColorModel.cpp@@ -442,7 +442,9 @@ void KisVisualColorModel::loadColorSpace(const KoColorSpace *cs)QVector <qreal> luma = cs->lumaCoefficients();memcpy(m_d->lumaRGB, luma.constData(), 3*sizeof(qreal));m_d->model = m_d->modelRGB;- } else if (!m_d->isLABlike) {+ } else if (m_d->isLABlike) {+ m_d->model = m_d->modelRGB;+ } else {m_d->model = KisVisualColorModel::Channel;}