mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
tweak "visible track count", take automation lanes into account.
This commit is contained in:
parent
92a1d3619b
commit
1438086c6c
1 changed files with 11 additions and 1 deletions
|
|
@ -3812,11 +3812,21 @@ Editor::set_visible_track_count (int32_t n)
|
||||||
str = s.str();
|
str = s.str();
|
||||||
} else if (_visible_track_count == 0) {
|
} else if (_visible_track_count == 0) {
|
||||||
uint32_t n = 0;
|
uint32_t n = 0;
|
||||||
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
|
for (TrackViewList::const_iterator i = track_views.begin(); i != track_views.end(); ++i) {
|
||||||
if ((*i)->marked_for_display()) {
|
if ((*i)->marked_for_display()) {
|
||||||
++n;
|
++n;
|
||||||
|
TimeAxisView::Children cl ((*i)->get_child_list ());
|
||||||
|
for (TimeAxisView::Children::const_iterator j = cl.begin(); j != cl.end(); ++j) {
|
||||||
|
if ((*j)->marked_for_display()) {
|
||||||
|
++n;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (n == 0) {
|
||||||
|
visible_tracks_selector.set_text (X_("*"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
h = trackviews_height() / n;
|
h = trackviews_height() / n;
|
||||||
str = _("All");
|
str = _("All");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue