diff --git a/src/imageformats/pic.cpp b/src/imageformats/pic.cpp index db15096..64930f1 100644 --- a/src/imageformats/pic.cpp +++ b/src/imageformats/pic.cpp @@ -340,7 +340,7 @@ static void encodeMixedRLEData(QDataStream &stream, const Item *data, unsigned l chunkLength = 1; chunkEnd = chunkStart + 1; while (chunkLength < maxChunk && - (chunkLength + 1 == maxChunk || + (chunkLength + 1u == maxChunk || !itemsEqual(*chunkEnd, *(chunkEnd+1)))) { ++chunkEnd;