From 49ec40a939ac5cd46f7ea85e03896e89377890d2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 16 Mar 2012 03:09:13 -0500 Subject: pricedb was outputting redundant prices Fixes #704 --- src/iterators.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/iterators.cc') 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) -- cgit v1.2.3