summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>