- pseries::print(): did not insert parenthesis when needed for precedence.
[ginac.git] / ginac / add.cpp
index 7cb4876dbdb43d2801273b60d4a559b317bc4e87..d999a1004f39735ccd80eeba03a04016c01519df 100644 (file)
@@ -220,7 +220,7 @@ void add::print(std::ostream & os, unsigned upper_precedence) const
                        }
                        os << '*';
                }
-               os << cit->rest;
+               cit->rest.print(os, precedence);
        }
        if (precedence<=upper_precedence) os << ")";
 }