fixed timeruler playhead bug

This commit is contained in:
itsmattkc
2019-08-11 21:57:07 +10:00
parent b66b9dcfce
commit eca8d98497
+1 -1
View File
@@ -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<double>(time_) * scale_ * timebase_dbl_);
int playhead_pos = qFloor(static_cast<double>(time_) * scale_ * timebase_dbl_) - scroll_;
if (playhead_pos + playhead_width_ >= 0 && playhead_pos - playhead_width_ < width()) {
p.setPen(Qt::NoPen);
p.setBrush(style_.PlayheadColor());