From d8ee15df1af5ec64d327ea25445cfa858e48cfa7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 25 Mar 2012 12:12:08 +0000 Subject: [PATCH] Reshow time selection when zooming in object-range mode (#4678). git-svn-id: svn://localhost/ardour2/branches/3.0@11754 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 5086305b01..ca19c0a4ef 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4268,7 +4268,11 @@ Editor::post_zoom () zoom_range_clock->set (frames); } - if (mouse_mode == MouseRange && selection->time.start () != selection->time.end_frame ()) { + bool const showing_time_selection = + mouse_mode == MouseRange || + (mouse_mode == MouseObject && _join_object_range_state != JOIN_OBJECT_RANGE_NONE); + + if (showing_time_selection && selection->time.start () != selection->time.end_frame ()) { for (TrackViewList::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) { (*i)->reshow_selection (selection->time); }