mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
fix up thinko in recent raise_to_top/lower_to_bottom optimization
This commit is contained in:
parent
70c4a5e2d6
commit
6d4c0baad3
1 changed files with 2 additions and 2 deletions
|
|
@ -238,7 +238,7 @@ void
|
||||||
Group::raise_child_to_top (Item* i)
|
Group::raise_child_to_top (Item* i)
|
||||||
{
|
{
|
||||||
if (!_items.empty()) {
|
if (!_items.empty()) {
|
||||||
if (_items.front() == i) {
|
if (_items.back() == i) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -270,7 +270,7 @@ void
|
||||||
Group::lower_child_to_bottom (Item* i)
|
Group::lower_child_to_bottom (Item* i)
|
||||||
{
|
{
|
||||||
if (!_items.empty()) {
|
if (!_items.empty()) {
|
||||||
if (_items.back() == i) {
|
if (_items.front() == i) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue