From 795073124dd2f3cb1ab60c360f45f4fa4541002f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 21 Aug 2018 17:59:23 +0200 Subject: [PATCH] [poincare] Fix typo --- poincare/src/multiplication.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/poincare/src/multiplication.cpp b/poincare/src/multiplication.cpp index 1f71e0f50..6e17d70e5 100644 --- a/poincare/src/multiplication.cpp +++ b/poincare/src/multiplication.cpp @@ -530,8 +530,7 @@ Expression Multiplication::distributeOnOperandAtIndex(int i, Context & context, Multiplication m = *this; m.replaceChildAtIndexInPlace(i, childAtIndex(i).childAtIndex(j)); // Reduce m: pi^(-1)*(pi + x) -> pi^(-1)*pi + pi^(-1)*x -> 1 + pi^(-1)*x - Expression reducedM = m.shallowReduce(context, angleUnit); - a.addChildAtIndexInPlace(m, a.numberOfChildren(), a.numberOfChildren()); + a.addChildAtIndexInPlace(m.shallowReduce(context, angleUnit), a.numberOfChildren(), a.numberOfChildren()); } return a.shallowReduce(context, angleUnit); // Order terms, put under a common denominator if needed }