X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fmul.cpp;h=63cc7e72a39e62c29e3e2f7444e458c80e3a5b82;hp=e5b38fd6485c1022f1707f75c02d1d20e317fb88;hb=77235661032cfad2ccd0087ad51c53f4d8947faa;hpb=36ffb97c48fbbd3acb2b1aa305872e00a4456dc4 diff --git a/ginac/mul.cpp b/ginac/mul.cpp index e5b38fd6..63cc7e72 100644 --- a/ginac/mul.cpp +++ b/ginac/mul.cpp @@ -218,8 +218,12 @@ void mul::do_print_csrc(const print_csrc & c, unsigned level) const c.s << "("; if (!overall_coeff.is_equal(_ex1)) { - overall_coeff.print(c, precedence()); - c.s << "*"; + if (overall_coeff.is_equal(_ex_1)) + c.s << "-"; + else { + overall_coeff.print(c, precedence()); + c.s << "*"; + } } // Print arguments, separated by "*" or "/"