1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Make it clear what are we trying to check here

This commit is contained in:
Martin Tůma 2022-01-24 21:22:33 +01:00
parent 2c770d3756
commit a815bc762f

View File

@ -654,7 +654,7 @@ static quint32 readSymbol(DataStream &stream, QPixmap &pixmap)
ds += paletteSize * 4;
}
if (imageSize >= lineSize * height) {
if (data.size() >= lineSize * height) {
if (paletteSize) {
img = QImage((uchar*)data.data(), width, height, lineSize,
QImage::Format_Indexed8);