From 5bb1908842cbaf98976c37df6db0cb4dd8c193c9 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 16 May 2001 20:04:51 +0000 Subject: [PATCH] fixed bug in mul::print with print_csrc --- ginac/mul.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.44.0