mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-07 01:18:50 -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())
|
if (!ensureScanned())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return qMax<quint32>(1, m_header.mipMapCount);
|
return qBound<quint32>(1, m_header.mipMapCount, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QDDSHandler::jumpToImage(int imageNumber)
|
bool QDDSHandler::jumpToImage(int imageNumber)
|
||||||
|
|||||||
Reference in New Issue
Block a user