mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[poincare] Fix EmptyLayoutNode::willAddSibling
This commit is contained in:
@@ -73,8 +73,12 @@ void EmptyLayoutNode::moveCursorVertically(VerticalDirection direction, LayoutCu
|
||||
bool EmptyLayoutNode::willAddSibling(LayoutCursor * cursor, LayoutNode * sibling, bool moveCursor) {
|
||||
if (sibling->mustHaveLeftSibling()) {
|
||||
m_color = Color::Yellow;
|
||||
return true;
|
||||
} else {
|
||||
LayoutRef(this).replaceWith(LayoutRef(sibling), cursor);
|
||||
// WARNING: do not call "this" afterwards
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
/* Color currentColor = m_color;
|
||||
int currentIndexInParent = indexInParent();
|
||||
if (currentColor == Color::Grey) {
|
||||
|
||||
Reference in New Issue
Block a user