From 5db12c45945404d230037df5297ef989b4a5cc2f Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 1 Nov 2026 11:37:41 +0100 Subject: [PATCH] Fix qBound --- src/imageformats/util_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageformats/util_p.h b/src/imageformats/util_p.h index 39e5966..6f5cc66 100644 --- a/src/imageformats/util_p.h +++ b/src/imageformats/util_p.h @@ -158,7 +158,7 @@ inline QList fixIndexedColorTable(const QList &colorTable, qint32 wa // color table larger than 256 items could crash on conversion to // Format_Grayscale8, Format_Mono, Format_MonoLSB, Format_Alpha8 - wantedSize = qBound(2, 256, wantedSize); + wantedSize = qBound(2, wantedSize, 256); if (list.size() == wantedSize) { return list;