mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-02-23 08:03:02 -05:00
Fix wrong palette check
This commit is contained in:
@ -1019,7 +1019,7 @@ QByteArray BODYChunk::deinterleave(const QByteArray &planes, qint32 y, const BMH
|
|||||||
auto pal = cmap->palette();
|
auto pal = cmap->palette();
|
||||||
if (ipal) {
|
if (ipal) {
|
||||||
auto tmp = ipal->palette(y);
|
auto tmp = ipal->palette(y);
|
||||||
if (tmp.size() == pal.size())
|
if (!tmp.isEmpty())
|
||||||
pal = tmp;
|
pal = tmp;
|
||||||
}
|
}
|
||||||
// HAM 6: 2 control bits+4 bits of data, 16-color palette
|
// HAM 6: 2 control bits+4 bits of data, 16-color palette
|
||||||
|
|||||||
Reference in New Issue
Block a user