Fix time axis view length.
authorCarl Hetherington <cth@carlh.net>
Tue, 3 Jul 2018 22:39:36 +0000 (23:39 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 3 Jul 2018 22:39:36 +0000 (23:39 +0100)
src/wx/timeline.cc
src/wx/timeline.h
src/wx/timeline_time_axis_view.cc

index 480f6d6..8d76e4c 100644 (file)
@@ -751,3 +751,9 @@ Timeline::tracks_y_offset () const
 {
        return _reels_view->bbox().height + 4;
 }
+
+int
+Timeline::width () const
+{
+       return _main_canvas->GetVirtualSize().GetWidth();
+}
index 503025f..1ec6330 100644 (file)
@@ -44,9 +44,7 @@ public:
 
        void force_redraw (dcpomatic::Rect<int> const &);
 
-       int width () const {
-               return GetVirtualSize().GetWidth ();
-       }
+       int width () const;
 
        int track_height () const {
                return _track_height;
index 1d7aefb..48157c9 100644 (file)
@@ -25,6 +25,7 @@
 #include <wx/graphics.h>
 
 using std::list;
+using std::cout;
 
 TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
        : TimelineView (tl)