summaryrefslogtreecommitdiff
path: root/src/wx/timeline_time_axis_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-04 00:51:31 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-04 00:51:31 +0100
commitaaaa51f6d9eda60ab3b3d182c6d2a7a5bda375aa (patch)
tree9a8a1ec74936fb47c4700d34da6e63cd82fe0f84 /src/wx/timeline_time_axis_view.cc
parentbeddaeab9011e745dcac9732f4e8de3f91bd81a5 (diff)
Add zoom-all button.
Diffstat (limited to 'src/wx/timeline_time_axis_view.cc')
-rw-r--r--src/wx/timeline_time_axis_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/timeline_time_axis_view.cc b/src/wx/timeline_time_axis_view.cc
index 48157c9c5..a31ed5ced 100644
--- a/src/wx/timeline_time_axis_view.cc
+++ b/src/wx/timeline_time_axis_view.cc
@@ -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);