From 1e8935fc2e5a1b351f76a95f2b7b0e8f9211344e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 11 Jan 2018 16:54:02 +0100 Subject: [PATCH] [poincare] Use MatrixLayout in Expression::Matrix::privateCreateLayout. Change-Id: I60a4212dd5206a8372f4355b9ff1287577428d1b --- poincare/src/matrix.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/poincare/src/matrix.cpp b/poincare/src/matrix.cpp index 09bcb7908..d8f9a8824 100644 --- a/poincare/src/matrix.cpp +++ b/poincare/src/matrix.cpp @@ -7,8 +7,7 @@ extern "C" { #include #include #include -#include "layout/grid_layout.h" -#include "layout/bracket_layout.h" +#include "layout/matrix_layout.h" #include #include #include @@ -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; }