Add zoom-all button.
[dcpomatic.git] / src / wx / timeline_time_axis_view.cc
index 48157c9c53d3cd5f9d4949a93a1f3fc08191d51b..a31ed5cedd3f7265736ccf5bf5ba5c65a0253c83 100644 (file)
@@ -61,7 +61,7 @@ TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>
 
        double const mark_interval = calculate_mark_interval (rint (128 / pps));
 
-       int y = _y * _timeline.track_height() + 32;
+       int y = _y * _timeline.pixels_per_track() + 32;
 
        wxGraphicsPath path = gc->CreatePath ();
        path.MoveToPoint (0, y);