fix up thinko in recent raise_to_top/lower_to_bottom optimization

This commit is contained in:
Paul Davis 2014-01-10 11:54:05 -05:00
parent 70c4a5e2d6
commit 6d4c0baad3

View file

@ -238,7 +238,7 @@ void
Group::raise_child_to_top (Item* i)
{
if (!_items.empty()) {
if (_items.front() == i) {
if (_items.back() == i) {
return;
}
}
@ -270,7 +270,7 @@ void
Group::lower_child_to_bottom (Item* i)
{
if (!_items.empty()) {
if (_items.back() == i) {
if (_items.front() == i) {
return;
}
}