git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d58aba5
)
fixed bug in mul::print with print_csrc
author
Christian Bauer
<Christian.Bauer@uni-mainz.de>
Wed, 16 May 2001 20:04:51 +0000
(20:04 +0000)
committer
Christian Bauer
<Christian.Bauer@uni-mainz.de>
Wed, 16 May 2001 20:04:51 +0000
(20:04 +0000)
ginac/mul.cpp
patch
|
blob
|
history
diff --git
a/ginac/mul.cpp
b/ginac/mul.cpp
index 75f74b4ba2cb7d06fc1ce969f4072ba7e4494618..efc207bb90c91d22e72a5707b499e1a8ddf2236d 100644
(file)
--- 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)) {
} 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);
if (!overall_coeff.is_equal(_ex1())) {
overall_coeff.bp->print(c, precedence);