diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-09-20 09:06:49 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-09-20 09:06:49 +0000 |
commit | 9e4f8633f43f63993fce513960eae248f9d7fe78 (patch) | |
tree | af1b3f28034a3985a6578608dfe03bb949d2ad9e /gtk2_ardour/editor_cursors.cc | |
parent | 68216b315ea443f12f41681a0075f6d5fe1c2f1c (diff) |
Don't defer Editor::track_canvas_size_allocated () (defer the timebar redrawing instead) + some performance improvements to said function, fix puzzling ineffective thinko wrt region movement, show/hide playhead more sensibly.
git-svn-id: svn://localhost/ardour2/branches/3.0@3771 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_cursors.cc')
-rw-r--r-- | gtk2_ardour/editor_cursors.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gtk2_ardour/editor_cursors.cc b/gtk2_ardour/editor_cursors.cc index ca00ec61d2..0f5c414408 100644 --- a/gtk2_ardour/editor_cursors.cc +++ b/gtk2_ardour/editor_cursors.cc @@ -64,10 +64,6 @@ Editor::Cursor::set_position (nframes64_t frame) { double new_pos = editor.frame_to_unit (frame); - if (editor.session == 0) { - canvas_item.hide(); - } - current_frame = frame; if (new_pos != points.front().get_x()) { points.front().set_x (new_pos); @@ -75,6 +71,7 @@ Editor::Cursor::set_position (nframes64_t frame) canvas_item.property_points() = points; } + current_frame = frame; } void @@ -83,9 +80,6 @@ Editor::Cursor::set_length (double units) length = units; points.back().set_y (points.front().get_y() + length); canvas_item.property_points() = points; - if (editor.session != 0) { - canvas_item.show(); - } } void |