summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-27 03:28:14 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-27 03:45:32 -0400
commitf1795e628b0027aed2dc344c757167887c337bc1 (patch)
tree4fea3644081c427daf247f34327510834ce28d5e /src/textual.cc
parent501949a364d3a26418bd59957be4015207312191 (diff)
downloadfork-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.cc2
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;