Commit 4f40f4a8 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Fix a bug in the alignement of the cursor with the ruler

parent be700048
......@@ -149,7 +149,7 @@ void TracksRuler::paintEvent( QPaintEvent* e )
painter.drawLine( ( int )f, BIG_MARK_X1, ( int )f, BIG_MARK_X2 );
// Draw the pointer
int cursorPos = ( int ) ( m_tracksView->cursorPos() * m_factor - offset() );
int cursorPos = qRound( 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 ) ) );
......
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