diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-19 03:01:24 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-19 03:01:24 -0400 |
commit | 61cc6c5a9a7f1439ed96d362176ab8b54bf5a8ed (patch) | |
tree | a8f28dead966094aedc6f3627d12cca8eb88b854 /amount.cc | |
parent | f62a4906d1a8886fa086f5bd6a41b8597a31b1d4 (diff) | |
download | fork-ledger-61cc6c5a9a7f1439ed96d362176ab8b54bf5a8ed.tar.gz fork-ledger-61cc6c5a9a7f1439ed96d362176ab8b54bf5a8ed.tar.bz2 fork-ledger-61cc6c5a9a7f1439ed96d362176ab8b54bf5a8ed.zip |
fixes to quote downloading
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -892,9 +892,6 @@ amount_t commodity_t::value(const std::time_t moment) std::time_t age = 0; amount_t price; - if (updater) - (*updater)(this, age, price, moment); - for (history_map::reverse_iterator i = history.rbegin(); i != history.rend(); i++) @@ -904,6 +901,9 @@ amount_t commodity_t::value(const std::time_t moment) break; } + if (updater) + (*updater)(this, moment, age, price); + return price; } |