summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
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 {