projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix failure to remove markers when the checkbox is unticked.
[dcpomatic.git]
/
src
/
wx
/
timeline_time_axis_view.cc
diff --git
a/src/wx/timeline_time_axis_view.cc
b/src/wx/timeline_time_axis_view.cc
index 48157c9c53d3cd5f9d4949a93a1f3fc08191d51b..e9de1b542fab6b1777993b09a920009d420903bc 100644
(file)
--- a/
src/wx/timeline_time_axis_view.cc
+++ b/
src/wx/timeline_time_axis_view.cc
@@
-26,6
+26,7
@@
using std::list;
using std::cout;
using std::list;
using std::cout;
+using namespace dcpomatic;
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
: TimelineView (tl)
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
: TimelineView (tl)
@@
-61,7
+62,7
@@
TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>
double const mark_interval = calculate_mark_interval (rint (128 / pps));
double const mark_interval = calculate_mark_interval (rint (128 / pps));
- int y = _y * _timeline.
track_height
() + 32;
+ int y = _y * _timeline.
pixels_per_track
() + 32;
wxGraphicsPath path = gc->CreatePath ();
path.MoveToPoint (0, y);
wxGraphicsPath path = gc->CreatePath ();
path.MoveToPoint (0, y);