Properly track events if there are no frame marks.

This commit is contained in:
Bartosz Taudul 2017-09-23 14:45:38 +02:00
parent 7ffa987857
commit 84cb8ab9cc

View File

@ -623,8 +623,15 @@ void View::DrawFrames()
{
m_frameStart = ( total < onScreen * group ) ? 0 : total - onScreen * group;
m_zvStart = m_frames[std::max( 0, (int)m_frames.size() - 4 )];
if( m_frames.size() == 1 )
{
m_zvEnd = GetLastTime();
}
else
{
m_zvEnd = m_frames.back();
}
}
if( hover )
{