fixed bug in mul::print with print_csrc
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 16 May 2001 20:04:51 +0000 (20:04 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 16 May 2001 20:04:51 +0000 (20:04 +0000)
ginac/mul.cpp

index 75f74b4ba2cb7d06fc1ce969f4072ba7e4494618..efc207bb90c91d22e72a5707b499e1a8ddf2236d 100644 (file)
@@ -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);