From 43327e482e4fe8a51e479c1ae2299fdc614994b0 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Thu, 19 Mar 2020 14:30:38 +0100 Subject: [PATCH] [poincare/multiplication] Use mergeChildrenAtIndexInPlace instead of mergeMultiplicationChildrenInPlace --- poincare/src/multiplication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poincare/src/multiplication.cpp b/poincare/src/multiplication.cpp index f89fae016..38b9fd4e3 100644 --- a/poincare/src/multiplication.cpp +++ b/poincare/src/multiplication.cpp @@ -831,7 +831,7 @@ void Multiplication::mergeInChildByFactorizingBase(int i, Expression e, Expressi * ie: 12^(1/2) -> 2*3^(1/2). In that case, we need to merge the multiplication * node with this. */ if (p.type() == ExpressionNode::Type::Multiplication) { - mergeMultiplicationChildrenInPlace(); + mergeChildrenAtIndexInPlace(p, i); } } @@ -852,7 +852,7 @@ void Multiplication::factorizeExponent(int i, int j, ExpressionNode::ReductionCo * ie: 12^(1/2) -> 2*3^(1/2). In that case, we need to merge the multiplication * node with this. */ if (p.type() == ExpressionNode::Type::Multiplication) { - mergeMultiplicationChildrenInPlace(); + mergeChildrenAtIndexInPlace(p, i); } }