Commit 6378a8dc authored by Ludovic Fauvet's avatar Ludovic Fauvet

Timeline: do not let the cusor go beyond 0

parent 831c6b73
......@@ -181,6 +181,7 @@ void TracksView::wheelEvent( QWheelEvent* event )
void TracksView::setCursorPos( int pos )
{
m_cursorPos = pos;
if ( m_cursorPos < 0 ) m_cursorPos = 0;
m_cursorLine->setPos( m_cursorPos, 0 );
emit cursorPositionChanged( pos );
}
......
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