summaryrefslogtreecommitdiff
path: root/src/balance.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 23:08:42 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 23:12:23 -0400
commitfc349389e3f074ae2ce22b93f3833f063f548a8f (patch)
treeb235bf0a9b6ca21aac1bcd56c8462f5570202723 /src/balance.cc
parent96ff798736cd06812fb7e463c14d6c356c8228e3 (diff)
downloadfork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.tar.gz
fork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.tar.bz2
fork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.zip
Restored the --budget option
Diffstat (limited to 'src/balance.cc')
-rw-r--r--src/balance.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/balance.cc b/src/balance.cc
index 92a6c767..b8009607 100644
--- a/src/balance.cc
+++ b/src/balance.cc
@@ -81,7 +81,7 @@ balance_t& balance_t::operator-=(const amount_t& amt)
if (i->second.is_realzero())
amounts.erase(i);
} else {
- amounts.insert(amounts_map::value_type(&amt.commodity(), amt.negate()));
+ amounts.insert(amounts_map::value_type(&amt.commodity(), amt.negated()));
}
return *this;
}