[poincare] NthRootLayout is now a BoundedStaticLayoutHierarchy.

It can now handle having an index or not (simple square root layout).

Change-Id: I7a3795c62873fa0a356719b8d572dd5a5be53c94
This commit is contained in:
Léa Saviot
2018-01-08 16:47:26 +01:00
parent 8d188279eb
commit 29e877ec92
6 changed files with 28 additions and 23 deletions

View File

@@ -118,7 +118,7 @@ ExpressionLayout * Controller::handleAddEvent(Ion::Events::Event event) {
return m_cursor.addEmptyPowerLayout();
}
if (event == Ion::Events::Sqrt) {
return m_cursor.addEmptyRootLayout();
return m_cursor.addEmptySquareRootLayout();
}
if (event == Ion::Events::Square) {
return m_cursor.addEmptySquarePowerLayout();