Fix TimeLineWidget overflow (#3410)

This commit is contained in:
Oskar Wallgren
2017-03-08 10:58:56 +01:00
committed by GitHub
parent cded9fb735
commit 9545f968b3

View File

@@ -371,7 +371,9 @@ void TimeLineWidget::mouseMoveEvent( QMouseEvent* event )
{
case MovePositionMarker:
m_pos.setTicks( t.getTicks() );
Engine::getSong()->setMilliSeconds(((((t.getTicks()))*60*1000/48)/Engine::getSong()->getTempo()));
Engine::getSong()->setMilliSeconds( ( t.getTicks() *
( 60 * 1000 / 48 ) ) /
Engine::getSong()->getTempo() );
m_pos.setCurrentFrame( 0 );
updatePosition();
positionMarkerMoved();