mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Group tab fix from David Halter (#4268).
git-svn-id: svn://localhost/ardour2/branches/3.0@9995 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
04ac05a26d
commit
82f8214277
1 changed files with 3 additions and 10 deletions
|
|
@ -244,8 +244,8 @@ GroupTabs::render (cairo_t* cr)
|
||||||
|
|
||||||
/** Convert a click position to a tab.
|
/** Convert a click position to a tab.
|
||||||
* @param c Click position.
|
* @param c Click position.
|
||||||
* @param prev Filled in with the previous tab to the click, or 0.
|
* @param prev Filled in with the previous tab to the click, or _tabs.end().
|
||||||
* @param next Filled in with the next tab after the click, or 0.
|
* @param next Filled in with the next tab after the click, or _tabs.end().
|
||||||
* @return Tab under the click, or 0.
|
* @return Tab under the click, or 0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -259,6 +259,7 @@ GroupTabs::click_to_tab (double c, list<Tab>::iterator* prev, list<Tab>::iterato
|
||||||
while (i != _tabs.end()) {
|
while (i != _tabs.end()) {
|
||||||
|
|
||||||
if (i->from > c) {
|
if (i->from > c) {
|
||||||
|
*next = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -275,14 +276,6 @@ GroupTabs::click_to_tab (double c, list<Tab>::iterator* prev, list<Tab>::iterato
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i != _tabs.end()) {
|
|
||||||
*next = i;
|
|
||||||
|
|
||||||
if (under) {
|
|
||||||
(*next)++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return under;
|
return under;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue