diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-12 11:09:49 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-12 11:09:49 -0400 |
commit | ecfd2a74552a45781e4d57a09e73313cd8815a4d (patch) | |
tree | fbd236dd6b63074b8bebe4aa6eb0b129236bff7a /gtk2_ardour/time_axis_view.cc | |
parent | fcb423f3f69225e0be896cb10b34b9628ab666f2 (diff) |
remove all unit-based methods from (Public)Editor; rationalize Editor::event_frame() to clearly identify whether the passed-in GdkEvent has window units or canvas units (the latter will be true for all events that are handled by the canvas and then passed to Editor
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index 4408b88f86..122a445564 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -856,8 +856,8 @@ TimeAxisView::show_selection (TimeSelection& ts) rect = get_selection_rect ((*i).id); - x1 = _editor.frame_to_unit (start); - x2 = _editor.frame_to_unit (start + cnt - 1); + x1 = _editor.frame_to_pixel (start); + x2 = _editor.frame_to_pixel (start + cnt - 1); y2 = current_height(); rect->rect->set (ArdourCanvas::Rect (x1, 1, x2, y2)); |