Skip to content

Commit

Permalink
Fix TimeLineWidget overflow (#3410)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine authored Mar 8, 2017
1 parent cded9fb commit 9545f96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/TimeLineWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9545f96

Please sign in to comment.