Commit 65a15c6f authored by Jouni Pentikäinen's avatar Jouni Pentikäinen

Fix a crash for empty keyframe channel

parent 10204672
......@@ -300,6 +300,8 @@ KisTimeRange KisKeyframeChannel::affectedFrames(int time) const
KisTimeRange KisKeyframeChannel::identicalFrames(int time) const
{
if (m_d->keys.isEmpty()) return KisTimeRange::infinite(0);
KeyframesMap::const_iterator active = activeKeyIterator(time);
KeyframesMap::const_iterator next = active + 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment