summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-03-25 12:12:08 +0000
committerCarl Hetherington <carl@carlh.net>2012-03-25 12:12:08 +0000
commitd8ee15df1af5ec64d327ea25445cfa858e48cfa7 (patch)
tree9ff9da4f75812c3c6c4af7450c4967b02febeabf
parent231eefc247d194eb01bb539185edb5f2c6dddf0a (diff)
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
-rw-r--r--gtk2_ardour/editor.cc6
1 files changed, 5 insertions, 1 deletions
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);
}