diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-27 03:28:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-27 03:45:32 -0400 |
commit | f1795e628b0027aed2dc344c757167887c337bc1 (patch) | |
tree | 4fea3644081c427daf247f34327510834ce28d5e /src/textual.cc | |
parent | 501949a364d3a26418bd59957be4015207312191 (diff) | |
download | fork-ledger-f1795e628b0027aed2dc344c757167887c337bc1.tar.gz fork-ledger-f1795e628b0027aed2dc344c757167887c337bc1.tar.bz2 fork-ledger-f1795e628b0027aed2dc344c757167887c337bc1.zip |
Fixed bugs relating to sign and rounding of costs
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc index a804fb1c..b3294d99 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -954,6 +954,8 @@ post_t * instance_t::parse_post(char * line, if (post->cost->sign() < 0) throw parse_error(_("A posting's cost may not be negative")); + post->cost->in_place_unround(); + if (per_unit) *post->cost *= post->amount; |