diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/history.cc | 2 | ||||
-rw-r--r-- | src/iterators.cc | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/history.cc b/src/history.cc index 3767c1df..f1e88401 100644 --- a/src/history.cc +++ b/src/history.cc @@ -212,9 +212,11 @@ void commodity_history_t::map_prices(function<void(datetime_t, else price.set_commodity(const_cast<commodity_t&>(*get(namemap, sv))); DEBUG("history.map", "Inverted price is " << price); + DEBUG("history.map", "fn(" << when << ", " << price << ")"); fn(when, price); } } else { + DEBUG("history.map", "fn(" << when << ", " << pair.second << ")"); fn(when, pair.second); } } 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) |