summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
Diffstat (limited to 'qif.cc')
-rw-r--r--qif.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/qif.cc b/qif.cc
index c5e007a7..987dc65c 100644
--- a/qif.cc
+++ b/qif.cc
@@ -96,7 +96,7 @@ unsigned int qif_parser_t::parse(std::istream& in,
xact->amount.parse(line);
if (! def_commodity)
def_commodity = commodity_t::find_commodity("$", true);
- xact->amount.commodity = def_commodity;
+ xact->amount.set_commodity(*def_commodity);
if (c == '$')
xact->amount.negate();
break;