Fix for clicking on tabs.
git-svn-id: svn://localhost/ardour2/branches/3.0@5231 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
74c4c1e19a
commit
44405f75e1
|
@ -128,7 +128,11 @@ EditorGroupTabs::on_button_press_event (GdkEventButton* ev)
|
|||
int32_t y = 0;
|
||||
Editor::TrackViewList::iterator i = _editor->track_views.begin();
|
||||
while (y < ev->y && i != _editor->track_views.end()) {
|
||||
y += (*i)->effective_height ();
|
||||
|
||||
if ((*i)->marked_for_display()) {
|
||||
y += (*i)->effective_height ();
|
||||
}
|
||||
|
||||
if (y < ev->y) {
|
||||
++i;
|
||||
}
|
||||
|
|
|
@ -127,7 +127,11 @@ MixerGroupTabs::on_button_press_event (GdkEventButton* ev)
|
|||
int32_t x = 0;
|
||||
list<MixerStrip*>::iterator i = _mixer->strips.begin();
|
||||
while (x < ev->x && i != _mixer->strips.end()) {
|
||||
x += (*i)->get_width ();
|
||||
|
||||
if (!(*i)->route()->is_master() && !(*i)->route()->is_control() && (*i)->marked_for_display()) {
|
||||
x += (*i)->get_width ();
|
||||
}
|
||||
|
||||
if (x < ev->x) {
|
||||
++i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue