[poincare] Fix HorizontalLayoutRef::addOrMergeChildAtIndex

This commit is contained in:
Léa Saviot
2018-07-31 15:39:04 +02:00
parent 5f8f20c5e5
commit 793bc37da8

View File

@@ -348,9 +348,6 @@ void HorizontalLayoutRef::addOrMergeChildAtIndex(LayoutRef l, int index, bool re
if (isAllocationFailure()) {
return;
}
if (l.isEmpty() && removeEmptyChildren) {
return;
}
if (l.isHorizontal()) {
mergeChildrenAtIndex(HorizontalLayoutRef(l.node()), index, removeEmptyChildren, cursor);
} else {