mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 16:50:50 +01:00
[poincare] Fix HorizontalLayoutRef::mergeChildrenAtIndex
This commit is contained in:
@@ -404,8 +404,8 @@ void HorizontalLayoutRef::mergeChildrenAtIndex(HorizontalLayoutRef h, int index,
|
||||
|
||||
LayoutRef nextPointedLayout(nullptr);
|
||||
LayoutCursor::Position nextPosition = LayoutCursor::Position::Left;
|
||||
if (index < numberOfChildren()) {
|
||||
nextPointedLayout = childAtIndex(index);
|
||||
if (newIndex < numberOfChildren()) {
|
||||
nextPointedLayout = childAtIndex(newIndex);
|
||||
nextPosition = LayoutCursor::Position::Left;
|
||||
} else {
|
||||
nextPointedLayout = *this;
|
||||
|
||||
Reference in New Issue
Block a user