X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimeline_view.cc;h=fb23fa7b15a896fe220d068688b91b47cd696ece;hb=2a20226bd8e1f01af1af4cbf1ad4c8752959d6a8;hp=e8b3856adb45f8e3d22858cda9616e43fa178065;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/wx/timeline_view.cc b/src/wx/timeline_view.cc index e8b3856ad..fb23fa7b1 100644 --- a/src/wx/timeline_view.cc +++ b/src/wx/timeline_view.cc @@ -22,6 +22,7 @@ #include "timeline.h" using std::list; +using namespace dcpomatic; /** @class TimelineView * @brief Parent class for components of the timeline (e.g. a piece of content or an axis). @@ -49,5 +50,5 @@ TimelineView::force_redraw () int TimelineView::time_x (DCPTime t) const { - return _timeline.tracks_position().x + t.seconds() * _timeline.pixels_per_second().get_value_or (0); + return t.seconds() * _timeline.pixels_per_second().get_value_or (0); }