diff options
author | John Wiegley <johnw@newartisans.com> | 2004-11-10 04:26:33 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:40:48 -0400 |
commit | 1db60b12e2341cd69c297de643ff46fbf9e4b970 (patch) | |
tree | a234ffca6eb451775de7e8158b72330057b4012a /amount.cc | |
parent | c9fb11bd60a2170fb896d77ff8d7706f563ad597 (diff) | |
download | fork-ledger-1db60b12e2341cd69c297de643ff46fbf9e4b970.tar.gz fork-ledger-1db60b12e2341cd69c297de643ff46fbf9e4b970.tar.bz2 fork-ledger-1db60b12e2341cd69c297de643ff46fbf9e4b970.zip |
updated to 2.02
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -620,6 +620,9 @@ std::string amount_t::quantity_string() const } mpz_set(rquotient, remainder); + if (mpz_sgn(quotient) == 0 && mpz_sgn(rquotient) == 0) + return "0"; + if (negative) out << "-"; |