Fix navigation in discontinuous frames.

This commit is contained in:
Bartosz Taudul 2018-08-05 02:27:59 +02:00
parent 947f829797
commit cb9f243987

View File

@ -6320,7 +6320,16 @@ void View::ZoomToPrevFrame()
{ {
if( m_zvStart >= m_worker.GetFrameBegin( *m_frames, 0 ) ) 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 ) if( frame > 0 )
{ {
frame--; frame--;