mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-01 00:48:49 -04:00
ANI: bound previousImage in nextImageDelay()
This commit is contained in:
committed by
Mirco Miranda
parent
12538e5ec0
commit
d6e97b1bd1
@@ -265,7 +265,9 @@ int ANIHandler::nextImageDelay() const
|
||||
if (previousImage < 0) {
|
||||
previousImage = m_displayRates.count() - 1;
|
||||
}
|
||||
rate = m_displayRates.at(previousImage);
|
||||
if (previousImage < m_displayRates.count()) {
|
||||
rate = m_displayRates.at(previousImage);
|
||||
}
|
||||
}
|
||||
|
||||
int delayNumerator;
|
||||
|
||||
Reference in New Issue
Block a user