diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-02 21:54:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-02 21:54:33 +0000 |
commit | 4dedfa9eb438f888b2dcab07d1f63a2b84da233f (patch) | |
tree | 744c893a1dfc11a39f960dfeaf913ab0405ab129 /gtk2_ardour/editor_canvas.cc | |
parent | 284185ca7339a771b662e1d1b119ae909526a1f2 (diff) |
fix problem with x-axis origin computation moving the origin at the wrong time
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2820 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 555d1fea06..574d10719b 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -371,7 +371,7 @@ Editor::reset_scrolling_region (Gtk::Allocation* alloc) transport_punchin_line->property_y2() = track_canvas_height; transport_punchout_line->property_y2() = track_canvas_height; - update_punch_range_view(true); + update_punch_range_view (true); controls_layout.queue_resize(); } @@ -695,7 +695,7 @@ Editor::canvas_horizontally_scrolled () leftmost_frame = (nframes_t) floor (horizontal_adjustment.get_value() * frames_per_unit); nframes_t rightmost_frame = leftmost_frame + current_page_frames (); - + if (rightmost_frame > last_canvas_frame) { last_canvas_frame = rightmost_frame; reset_scrolling_region (); |