mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
[poincare] Use MatrixLayout in Expression::Matrix::privateCreateLayout.
Change-Id: I60a4212dd5206a8372f4355b9ff1287577428d1b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user