Commit c0448406 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Timeline: avoid cursor-marker shift.

parent eb65c2ea
......@@ -160,7 +160,7 @@ void TracksRuler::paintEvent( QPaintEvent* e )
painter.drawLine( ( int )f, BIG_MARK_X1, ( int )f, BIG_MARK_X2 );
// Draw the pointer
int cursorPos = qRound( m_tracksView->cursorPos() * m_factor - offset() );
int cursorPos = m_tracksView->cursorPos() * m_factor - offset();
QPolygon cursor( 3 );
cursor.setPoints( 3, cursorPos - 9, 11, cursorPos + 9, 11, cursorPos, 30 );
painter.setBrush( QBrush( QColor( 82, 97, 122, 150 ) ) );
......
......@@ -1030,7 +1030,8 @@ TracksView::mediaItems()
void
TracksView::setCursorPos( qint64 pos )
{
if ( pos < 0 ) pos = 0;
if ( pos < 0 )
pos = 0;
m_cursorLine->frameChanged( pos, MainWorkflow::TimelineCursor );
}
......
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