summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-09-30 23:17:18 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-09-30 23:17:18 +0000
commitabe98b8f8932038f9dcd671014a5d51a8b0fa0b8 (patch)
tree2cc61a019fa066d4eeda4a8116c5b146ed2fc9c2 /amount.cc
parent487ea6a2171ec70b8ee0ff147a44abb6d89679dc (diff)
downloadfork-ledger-abe98b8f8932038f9dcd671014a5d51a8b0fa0b8.tar.gz
fork-ledger-abe98b8f8932038f9dcd671014a5d51a8b0fa0b8.tar.bz2
fork-ledger-abe98b8f8932038f9dcd671014a5d51a8b0fa0b8.zip
*** empty log message ***
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/amount.cc b/amount.cc
index 16575046..2d8271be 100644
--- a/amount.cc
+++ b/amount.cc
@@ -477,8 +477,8 @@ static commodity * parse_amount(mpz_t out, const char * num,
commodity * comm = NULL;
if (saw_commodity) {
- commodities_iterator item = commodities.find(symbol.c_str());
- if (item == commodities.end()) {
+ commodities_iterator item = main_ledger.commodities.find(symbol.c_str());
+ if (item == main_ledger.commodities.end()) {
comm = new commodity(symbol, prefix, separate,
thousands, european, precision);
} else {