diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-01 15:58:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-01 15:58:40 +0000 |
commit | e4fceee69f66a62e0a706c1be4159c8953aa046d (patch) | |
tree | 2460516904571daa2dae19ec5002e2025e7496fd /gtk2_ardour/route_time_axis.cc | |
parent | 77ebc1fb423e400de7448e0154f65bc73ff51cf1 (diff) |
phase two (of 3 or 4) for zoom-to-region et al
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3300 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 66a87762fc..07a7142b3b 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -653,7 +653,7 @@ RouteTimeAxisView::show_timestretch (nframes_t start, nframes_t end) x1 = start / editor.get_current_zoom(); x2 = (end - 1) / editor.get_current_zoom(); - y2 = height - 2; + y2 = current_height() - 2; timestretch_rect->property_x1() = x1; timestretch_rect->property_y1() = 1.0; @@ -702,7 +702,7 @@ RouteTimeAxisView::set_height (uint32_t h) ensure_xml_node (); if (_view) { - _view->set_height ((double) height); + _view->set_height ((double) current_height()); } char buf[32]; |