mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Make it clear what are we trying to check here
This commit is contained in:
parent
2c770d3756
commit
a815bc762f
@ -654,7 +654,7 @@ static quint32 readSymbol(DataStream &stream, QPixmap &pixmap)
|
|||||||
ds += paletteSize * 4;
|
ds += paletteSize * 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (imageSize >= lineSize * height) {
|
if (data.size() >= lineSize * height) {
|
||||||
if (paletteSize) {
|
if (paletteSize) {
|
||||||
img = QImage((uchar*)data.data(), width, height, lineSize,
|
img = QImage((uchar*)data.data(), width, height, lineSize,
|
||||||
QImage::Format_Indexed8);
|
QImage::Format_Indexed8);
|
||||||
|
Loading…
Reference in New Issue
Block a user