summaryrefslogtreecommitdiff
path: root/src/iterators.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/iterators.cc')
-rw-r--r--src/iterators.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iterators.cc b/src/iterators.cc
index 8ca5922b..acbb581f 100644
--- a/src/iterators.cc
+++ b/src/iterators.cc
@@ -138,7 +138,7 @@ void posts_commodities_iterator::reset(journal_t& journal)
commodity_t& comm(post->amount.commodity());
if (comm.flags() & COMMODITY_NOMARKET)
continue;
- commodities.insert(&comm);
+ commodities.insert(&comm.referent());
}
foreach (commodity_t * comm, commodities)