mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-11-17 16:52:45 -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();
|
||||
if (ipal) {
|
||||
auto tmp = ipal->palette(y);
|
||||
if (tmp.size() == pal.size())
|
||||
if (!tmp.isEmpty())
|
||||
pal = tmp;
|
||||
}
|
||||
// HAM 6: 2 control bits+4 bits of data, 16-color palette
|
||||
|
||||
Reference in New Issue
Block a user