summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-04 09:56:51 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:44 -0400
commit770ef0e18326048797d1770ab0c01a8f8af83b44 (patch)
treeecf7f924e50d8942ebf85d1ece0c238213c28c35
parent7a965565cf036cee8ada07e2e3df27d13f936acb (diff)
downloadfork-ledger-770ef0e18326048797d1770ab0c01a8f8af83b44.tar.gz
fork-ledger-770ef0e18326048797d1770ab0c01a8f8af83b44.tar.bz2
fork-ledger-770ef0e18326048797d1770ab0c01a8f8af83b44.zip
*** no comment ***
-rw-r--r--balance.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/balance.h b/balance.h
index 4c2c8b00..83cf66b1 100644
--- a/balance.h
+++ b/balance.h
@@ -100,7 +100,7 @@ class balance_t
if (i != amounts.end())
(*i).second -= amt;
else if (amt)
- amounts.insert(amounts_pair(&amt.commodity(), amt));
+ amounts.insert(amounts_pair(&amt.commodity(), - amt));
return *this;
}
template <typename T>