diff --git a/src/app/ui/timeline/timeline.cpp b/src/app/ui/timeline/timeline.cpp index 0ab9cc3c9..3ae61a027 100644 --- a/src/app/ui/timeline/timeline.cpp +++ b/src/app/ui/timeline/timeline.cpp @@ -3722,8 +3722,7 @@ void Timeline::setViewScroll(const gfx::Point& pt) if (newScroll.y != oldScroll.y) { gfx::Rect rc; rc = getLayerHeadersBounds(); - rc.x += bounds().x; - rc.y += bounds().y; + rc.offset(origin()); invalidateRect(rc); }