summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-19 03:01:24 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-19 03:01:24 -0400
commit61cc6c5a9a7f1439ed96d362176ab8b54bf5a8ed (patch)
treea8f28dead966094aedc6f3627d12cca8eb88b854 /amount.cc
parentf62a4906d1a8886fa086f5bd6a41b8597a31b1d4 (diff)
downloadfork-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.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/amount.cc b/amount.cc
index d8e5a85d..6802ce15 100644
--- a/amount.cc
+++ b/amount.cc
@@ -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;
}