Prevent 0 ns timeline view range.

This commit is contained in:
Bartosz Taudul 2019-12-16 18:40:38 +01:00
parent ccd20af7a1
commit 95af214abe

View File

@ -14221,6 +14221,10 @@ void View::SetViewToLastFrames()
{
m_vd.zvEnd = m_worker.GetFrameBegin( *m_frames, total - 1 );
}
if( m_vd.zvEnd == m_vd.zvStart )
{
m_vd.zvEnd = m_worker.GetLastTime();
}
}
int64_t View::GetZoneChildTime( const ZoneEvent& zone )