From 61cc6c5a9a7f1439ed96d362176ab8b54bf5a8ed Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Aug 2004 03:01:24 -0400 Subject: fixes to quote downloading --- amount.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'amount.cc') 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; } -- cgit v1.2.3