X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimeline_time_axis_view.cc;h=e9de1b542fab6b1777993b09a920009d420903bc;hb=08f96200aacf9f91ef3e3f5b80224a5b2437f279;hp=48157c9c53d3cd5f9d4949a93a1f3fc08191d51b;hpb=c257dde2b276dd4cb416faf63fd50c0ff1ace953;p=dcpomatic.git diff --git a/src/wx/timeline_time_axis_view.cc b/src/wx/timeline_time_axis_view.cc index 48157c9c5..e9de1b542 100644 --- a/src/wx/timeline_time_axis_view.cc +++ b/src/wx/timeline_time_axis_view.cc @@ -26,6 +26,7 @@ using std::list; using std::cout; +using namespace dcpomatic; TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y) : TimelineView (tl) @@ -61,7 +62,7 @@ TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list 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);