diff options
Diffstat (limited to 'walk.cc')
-rw-r--r-- | walk.cc | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -90,12 +90,11 @@ void changed_value_transactions::operator()(transaction_t * xact) if (balance_t diff = cur_bal - prev_bal) { entry_t * entry = new entry_t; + entry_temps.push_back(entry); entry->payee = "Commodities revalued"; entry->date = current; - entry_temps.push_back(entry); - for (amounts_map::const_iterator i = diff.amounts.begin(); i != diff.amounts.end(); i++) { @@ -138,10 +137,10 @@ void subtotal_transactions::flush(const char * spec_fmt) } entry_t * entry = new entry_t; - entry->payee = buf; - entry_temps.push_back(entry); + entry->payee = buf; + for (balances_map::iterator i = balances.begin(); i != balances.end(); i++) { |