diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-02-07 13:58:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-02-07 13:58:33 +0000 |
commit | da093c7939159c805039ee8aa85dde68656327e9 (patch) | |
tree | 34b3e07218e2f68869f45e9cc31e103a85c9cecb /gtk2_ardour/time_axis_view.cc | |
parent | c7ed1141eb17b87b74a7d6de2e63e24136657392 (diff) |
restore many keybindings from ardour 0.99
git-svn-id: svn://localhost/trunk/ardour2@313 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index 52d38eeea1..8b1b2fa999 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -616,8 +616,8 @@ TimeAxisView::show_selection (TimeSelection& ts) rect = get_selection_rect ((*i).id); - x1 = start / editor.get_current_zoom(); - x2 = (start + cnt - 1) / editor.get_current_zoom(); + x1 = editor.frame_to_unit (start); + x2 = editor.frame_to_unit (start + cnt - 1); y2 = height; rect->rect->property_x1() = x1; @@ -653,6 +653,8 @@ TimeAxisView::show_selection (TimeSelection& ts) void TimeAxisView::reshow_selection (TimeSelection& ts) { + cerr << name() << ": reshow selection" << endl; + show_selection (ts); for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) { |