summaryrefslogtreecommitdiff
path: root/src/wx/timeline.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-03 23:39:36 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-03 23:39:36 +0100
commitc257dde2b276dd4cb416faf63fd50c0ff1ace953 (patch)
treef11e3353f45bcd800b9f3e24d91ec8d3114c11b2 /src/wx/timeline.cc
parent5a9373e48aa575c70bd32b4b48eb6b9b8634a4fc (diff)
Fix time axis view length.
Diffstat (limited to 'src/wx/timeline.cc')
-rw-r--r--src/wx/timeline.cc6
1 files changed, 6 insertions, 0 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();
+}