[escher] Just replace the layout when clearing it in LayoutField

This commit is contained in:
Léa Saviot
2018-09-14 11:20:04 +02:00
parent 230bb91374
commit 985f310b1c
7 changed files with 18 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ namespace Calculation {
EditExpressionController::ContentView::ContentView(Responder * parentResponder, TableView * subview, TextFieldDelegate * textFieldDelegate, LayoutFieldDelegate * layoutFieldDelegate) :
View(),
m_mainView(subview),
m_expressionField(parentResponder, m_textBody, k_bufferLength, Poincare::HorizontalLayoutRef(), textFieldDelegate, layoutFieldDelegate)
m_expressionField(parentResponder, m_textBody, k_bufferLength, textFieldDelegate, layoutFieldDelegate)
{
m_textBody[0] = 0;
}