Fix crash using a frame tag at the end of the sprite with a long name

This commit is contained in:
David Capello 2017-09-26 11:49:19 -03:00
parent f7b76058d3
commit af3cc1d3c0

View File

@ -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];
}