mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[poincare] change createLayout signature
- CreateLayout depends on the float display mode and the number of significant digits - Float display mode does not have a default value anymore
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "function.h"
|
||||
#include "poincare_helpers.h"
|
||||
#include <string.h>
|
||||
#include <cmath>
|
||||
#include <assert.h>
|
||||
@@ -48,7 +49,7 @@ Poincare::ExpressionLayout * ExpressionModel::layout() {
|
||||
if (m_layout == nullptr) {
|
||||
Expression * nonSimplifiedExpression = Expression::parse(m_text);
|
||||
if (nonSimplifiedExpression != nullptr) {
|
||||
m_layout = nonSimplifiedExpression->createLayout(PrintFloat::Mode::Decimal);
|
||||
m_layout = PoincareHelpers::CreateLayout(nonSimplifiedExpression);
|
||||
delete nonSimplifiedExpression;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user