From bc2f6539ee9e2ecfb1964ed14baaa110e5cb3ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 10 Oct 2017 17:45:51 +0200 Subject: [PATCH] [poincare] Clean Change-Id: I132f49f26ccd1391051ac56acfebf4460e2bffb3 --- poincare/src/addition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poincare/src/addition.cpp b/poincare/src/addition.cpp index f7b2e3474..bb19995a0 100644 --- a/poincare/src/addition.cpp +++ b/poincare/src/addition.cpp @@ -98,7 +98,7 @@ void Addition::immediateBeautify() { int index = 0; while (index < numberOfOperands()) { // a+(-1)*b+... -> a-b+... - if (operand(index)->type() == Type::Multiplication && static_cast(operand(index))->operand(0)->type() == Type::Rational && static_cast(operand(index)->operand(0))->isMinusOne()) { + if (operand(index)->type() == Type::Multiplication && operand(index)->operand(0)->type() == Type::Rational && static_cast(operand(index)->operand(0))->isMinusOne()) { Multiplication * m = static_cast((Expression *)operand(index)); m->removeOperand(m->operand(0), true); m->squashUnaryHierarchy();