mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix crash using a frame tag at the end of the sprite with a long name
This commit is contained in:
parent
f7b76058d3
commit
af3cc1d3c0
@ -2669,7 +2669,10 @@ void Timeline::regenerateTagBands()
|
||||
m_tagBand[frameTag] = tagsPerFrame[f];
|
||||
|
||||
frame_t toFrame = calcTagVisibleToFrame(frameTag);
|
||||
if (toFrame >= tagsPerFrame.size())
|
||||
tagsPerFrame.resize(toFrame+1, 0);
|
||||
for (; f<=toFrame; ++f) {
|
||||
ASSERT(f < tagsPerFrame.size());
|
||||
if (tagsPerFrame[f] < 255)
|
||||
++tagsPerFrame[f];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user