diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-15 04:47:32 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-15 04:58:53 -0500 |
commit | 610a3e170994dc3cd3ae0dc989a49e4e7c7fdadf (patch) | |
tree | db4a99b9f5f41047c0c4632452eb944c93a7f07d /src/history.h | |
parent | d9fc09097d3ea290a4bdf0c9b46c8ead3e48043c (diff) | |
download | fork-ledger-610a3e170994dc3cd3ae0dc989a49e4e7c7fdadf.tar.gz fork-ledger-610a3e170994dc3cd3ae0dc989a49e4e7c7fdadf.tar.bz2 fork-ledger-610a3e170994dc3cd3ae0dc989a49e4e7c7fdadf.zip |
Don't map_prices if price commodity matches source
Fixes #680
Diffstat (limited to 'src/history.h')
-rw-r--r-- | src/history.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/history.h b/src/history.h index 71cbad0c..af0d90f9 100644 --- a/src/history.h +++ b/src/history.h @@ -113,7 +113,8 @@ public: void map_prices(function<void(datetime_t, const amount_t&)> fn, const commodity_t& source, const datetime_t& moment, - const datetime_t& _oldest = datetime_t()); + const datetime_t& _oldest = datetime_t(), + bool bidirectionally = false); optional<price_point_t> find_price(const commodity_t& source, |