Fix qBound

This commit is contained in:
Albert Astals Cid
2026-11-01 11:37:41 +01:00
parent 98d616eb16
commit 5db12c4594
+1 -1
View File
@@ -158,7 +158,7 @@ inline QList<QRgb> fixIndexedColorTable(const QList<QRgb> &colorTable, qint32 wa
// color table larger than 256 items could crash on conversion to // color table larger than 256 items could crash on conversion to
// Format_Grayscale8, Format_Mono, Format_MonoLSB, Format_Alpha8 // Format_Grayscale8, Format_Mono, Format_MonoLSB, Format_Alpha8
wantedSize = qBound(2, 256, wantedSize); wantedSize = qBound(2, wantedSize, 256);
if (list.size() == wantedSize) { if (list.size() == wantedSize) {
return list; return list;