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
This commit is contained in:
Carl Hetherington 2012-03-25 12:12:08 +00:00
parent 231eefc247
commit d8ee15df1a

View File

@ -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);
}