From eca8d984970b92d18f92719cd7a267f05ed20704 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 11 Aug 2019 21:57:07 +1000 Subject: [PATCH] fixed timeruler playhead bug --- app/widget/timeruler/timeruler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/widget/timeruler/timeruler.cpp b/app/widget/timeruler/timeruler.cpp index 5610943f1..fd5390998 100644 --- a/app/widget/timeruler/timeruler.cpp +++ b/app/widget/timeruler/timeruler.cpp @@ -215,7 +215,7 @@ void TimeRuler::paintEvent(QPaintEvent *) } // Draw the playhead if it's on screen at the moment - int playhead_pos = qFloor(static_cast(time_) * scale_ * timebase_dbl_); + int playhead_pos = qFloor(static_cast(time_) * scale_ * timebase_dbl_) - scroll_; if (playhead_pos + playhead_width_ >= 0 && playhead_pos - playhead_width_ < width()) { p.setPen(Qt::NoPen); p.setBrush(style_.PlayheadColor());