Commit e4c03b2f authored by Andrey Kamakin's avatar Andrey Kamakin

Merge remote-tracking branch 'origin/master' into akamakin/T8628-multithreading-optimization

parents a95bd277 4a3af9ab
......@@ -169,7 +169,7 @@ public:
// XXX: if the paint colorspace is rgb, we should do the channel swizzling in
// the display shader
if (!channelFlags.isEmpty()) {
if (!channelFlags.isEmpty() && selectedChannelIndex >= 0 && selectedChannelIndex < m_patchColorSpace->channels().size()) {
DataBuffer conversionCache(m_patchColorSpace->pixelSize(), m_pool);
QList<KoChannelInfo*> channelInfo = m_patchColorSpace->channels();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment