mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[poincare] Clean Expression and Layout builders
Before: Opposite(Opposite(Rational(1))) misleadingly created the expression "-1"; now, Opposite::Builder(Opposite::Builder(Rational(1))) creates "--1"
This commit is contained in:
committed by
LeaNumworks
parent
b3d15d7e7f
commit
ac6f23684d
@@ -50,9 +50,9 @@ double TermSumController::cursorNextStep(double x, int direction) {
|
||||
}
|
||||
|
||||
Layout TermSumController::createFunctionLayout(const char * functionName) {
|
||||
return HorizontalLayout(
|
||||
return HorizontalLayout::Builder(
|
||||
CharLayout(functionName[0], KDFont::SmallFont),
|
||||
VerticalOffsetLayout(
|
||||
VerticalOffsetLayout::Builder(
|
||||
CharLayout('n', KDFont::SmallFont),
|
||||
VerticalOffsetLayoutNode::Type::Subscript
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user