diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-26 21:34:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-26 21:34:30 +0000 |
| commit | 71e6e81dc732f262ed7ce7011f1729bcd3e03dd2 (patch) | |
| tree | 9bef976e78c4d13690879b50b8a69fd53db5b92d /src | |
| parent | cef07676fb15c9f1c3c3073d22f06ffe95d9c2ce (diff) | |
Fix positioning of reel labels in the timeline.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/timeline_reels_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/timeline_reels_view.cc b/src/wx/timeline_reels_view.cc index 6c3da465e..d80199d64 100644 --- a/src/wx/timeline_reels_view.cc +++ b/src/wx/timeline_reels_view.cc @@ -87,7 +87,7 @@ TimelineReelsView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> >) wxDouble str_leading; gc->GetTextExtent (str, &str_width, &str_height, &str_descent, &str_leading); - int const available_width = time_x (DCPTime (i.to.get() - i.from.get())); + int const available_width = time_x (DCPTime (i.to.get())) - time_x (DCPTime (i.from.get())); if (available_width > str_width) { gc->DrawText (str, time_x (DCPTime (i.from.get())) + (available_width - str_width) / 2, _y + 4); |
