[poincare] Each leayout gives the layoutToPointWhenInserting

Change-Id: I5f054643decd27731e77d0f1cf2e6874cf6ff8d5
This commit is contained in:
Léa Saviot
2018-04-17 15:33:40 +02:00
parent bf43ad4d22
commit 193aefd5a6
12 changed files with 45 additions and 5 deletions

View File

@@ -146,9 +146,6 @@ void MathToolbox::actionForScrollableExpressionViewWithCursor(void * sender, con
break;
}
}
} else if (resultLayout->numberOfChildren() > 0) {
// Else, if the layout has children, pick the first one.
pointedLayout = resultLayout->editableChild(0);
}
// Insert the layout. If pointedLayout is nullptr, the cursor will be on the
// right of the inserted layout.