[poincare] Use MatrixLayout in Expression::Matrix::privateCreateLayout.

Change-Id: I60a4212dd5206a8372f4355b9ff1287577428d1b
This commit is contained in:
Léa Saviot
2018-01-11 16:54:02 +01:00
parent 16fad9f9fb
commit 1e8935fc2e

View File

@@ -7,8 +7,7 @@ extern "C" {
#include <poincare/addition.h>
#include <poincare/decimal.h>
#include <poincare/undefined.h>
#include "layout/grid_layout.h"
#include "layout/bracket_layout.h"
#include "layout/matrix_layout.h"
#include <cmath>
#include <float.h>
#include <string.h>
@@ -102,7 +101,7 @@ ExpressionLayout * Matrix::privateCreateLayout(FloatDisplayMode floatDisplayMode
for (int i = 0; i < numberOfOperands(); i++) {
childrenLayouts[i] = operand(i)->createLayout(floatDisplayMode, complexFormat);
}
ExpressionLayout * layout = new BracketLayout(new GridLayout(childrenLayouts, numberOfRows(), numberOfColumns(), false), false);
ExpressionLayout * layout = new MatrixLayout(childrenLayouts, numberOfRows(), numberOfColumns(), false);
delete [] childrenLayouts;
return layout;
}