diff --git a/poincare/src/multiplication.cpp b/poincare/src/multiplication.cpp index 419db00bf..510086a29 100644 --- a/poincare/src/multiplication.cpp +++ b/poincare/src/multiplication.cpp @@ -711,6 +711,8 @@ Expression Multiplication::privateShallowReduce(ExpressionNode::ReductionContext { const Expression c = childAtIndex(0); if (hasUnit()) { + // Do not expand Multiplication in presence of units + shouldExpand = false; // Make sure a Multiplication is not made of (Power of) Units only if (!c.isNumber()) { addChildAtIndexInPlace(Rational::Builder(1), 0, numberOfChildren());