Commit 1c0c9ae4 authored by Boudewijn Rempt's avatar Boudewijn Rempt

KoColorSpace: remove obsolete use of KoColorChannel::index

The index was changed to be always the same as the order in the channels
list: use that order, now that index is changed to displayPosition.
parent 8917a0ca
......@@ -115,7 +115,7 @@ QBitArray KoColorSpace::channelFlags(bool color, bool alpha, bool substance, boo
(alpha && channel->channelType() == KoChannelInfo::ALPHA) ||
(substrate && channel->channelType() == KoChannelInfo::SUBSTRATE) ||
(substance && channel->channelType() == KoChannelInfo::SUBSTANCE))
ba.setBit(channel->index(), true);
ba.setBit(i, true);
}
return ba;
}
......
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