mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Fix navigation in discontinuous frames.
This commit is contained in:
parent
947f829797
commit
cb9f243987
@ -6320,7 +6320,16 @@ void View::ZoomToPrevFrame()
|
||||
{
|
||||
if( m_zvStart >= m_worker.GetFrameBegin( *m_frames, 0 ) )
|
||||
{
|
||||
auto frame = m_worker.GetFrameRange( *m_frames, m_zvStart, m_zvStart ).first;
|
||||
int frame;
|
||||
if( m_frames->continuous )
|
||||
{
|
||||
frame = m_worker.GetFrameRange( *m_frames, m_zvStart, m_zvStart ).first;
|
||||
}
|
||||
else
|
||||
{
|
||||
frame = m_worker.GetFrameRange( *m_frames, m_zvStart, m_zvStart ).second;
|
||||
}
|
||||
|
||||
if( frame > 0 )
|
||||
{
|
||||
frame--;
|
||||
|
Loading…
Reference in New Issue
Block a user