From c257dde2b276dd4cb416faf63fd50c0ff1ace953 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 3 Jul 2018 23:39:36 +0100 Subject: [PATCH] Fix time axis view length. --- src/wx/timeline.cc | 6 ++++++ src/wx/timeline.h | 4 +--- src/wx/timeline_time_axis_view.cc | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 480f6d690..8d76e4cae 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -751,3 +751,9 @@ Timeline::tracks_y_offset () const { return _reels_view->bbox().height + 4; } + +int +Timeline::width () const +{ + return _main_canvas->GetVirtualSize().GetWidth(); +} diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 503025f3c..1ec633085 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -44,9 +44,7 @@ public: void force_redraw (dcpomatic::Rect const &); - int width () const { - return GetVirtualSize().GetWidth (); - } + int width () const; int track_height () const { return _track_height; diff --git a/src/wx/timeline_time_axis_view.cc b/src/wx/timeline_time_axis_view.cc index 1d7aefb73..48157c9c5 100644 --- a/src/wx/timeline_time_axis_view.cc +++ b/src/wx/timeline_time_axis_view.cc @@ -25,6 +25,7 @@ #include using std::list; +using std::cout; TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y) : TimelineView (tl) -- 2.30.2