From: Christian Bauer Date: Wed, 16 May 2001 20:04:51 +0000 (+0000) Subject: fixed bug in mul::print with print_csrc X-Git-Tag: release_0-9-0~55 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=5bb1908842cbaf98976c37df6db0cb4dd8c193c9 fixed bug in mul::print with print_csrc --- diff --git a/ginac/mul.cpp b/ginac/mul.cpp index 75f74b4b..efc207bb 100644 --- a/ginac/mul.cpp +++ b/ginac/mul.cpp @@ -136,7 +136,8 @@ void mul::print(const print_context & c, unsigned level) const } else if (is_of_type(c, print_csrc)) { - c.s << "("; + if (precedence <= level) + c.s << "("; if (!overall_coeff.is_equal(_ex1())) { overall_coeff.bp->print(c, precedence);