mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-05 16:58:54 -05:00
DDS: Limit the maximum number of images to 32
This commit is contained in:
@@ -2602,7 +2602,7 @@ int QDDSHandler::imageCount() const
|
||||
if (!ensureScanned())
|
||||
return 0;
|
||||
|
||||
return qMax<quint32>(1, m_header.mipMapCount);
|
||||
return qBound<quint32>(1, m_header.mipMapCount, 32);
|
||||
}
|
||||
|
||||
bool QDDSHandler::jumpToImage(int imageNumber)
|
||||
|
||||
Reference in New Issue
Block a user