mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-06 09:08:50 -05:00
Ensure that the palette does not have more than 256 values
This commit is contained in:
committed by
Mirco Miranda
parent
e2c6317079
commit
59157971e8
@@ -652,7 +652,7 @@ static bool LoadTGA(QIODevice *dev, const TgaHeader &tga, QImage &img)
|
||||
return false;
|
||||
}
|
||||
|
||||
img.setColorTable(colorTable);
|
||||
img.setColorTable(truncTo8BitColorTable(colorTable));
|
||||
}
|
||||
|
||||
// Convert image to internal format.
|
||||
|
||||
Reference in New Issue
Block a user