summaryrefslogtreecommitdiff
path: root/walk.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-10 18:38:52 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-10 18:38:52 -0400
commite1d6c4bff27f41fbe57738205ba3548554380a73 (patch)
tree270da6408bfdbbc10787e6ca1439aa715d7a6fbe /walk.cc
parente414123ecb472d1f86a2f1cfdbd2732144c20f0d (diff)
downloadfork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.tar.gz
fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.tar.bz2
fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.zip
interval_t objects now play nicely with python. see the bottom of main.py
Diffstat (limited to 'walk.cc')
-rw-r--r--walk.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/walk.cc b/walk.cc
index b98dd3f1..cfecf392 100644
--- a/walk.cc
+++ b/walk.cc
@@ -256,10 +256,10 @@ void subtotal_transactions::operator()(transaction_t& xact)
void interval_transactions::operator()(transaction_t& xact)
{
- std::time_t quant = interval.increment(begin);
+ std::time_t quant = interval.increment(interval.begin);
if (std::difftime(xact.entry->date, quant) > 0) {
if (last_xact) {
- start = begin;
+ start = interval.begin;
finish = quant;
flush();
}
@@ -279,7 +279,7 @@ void interval_transactions::operator()(transaction_t& xact)
while (std::difftime(xact.entry->date,
temp = interval.increment(quant)) > 0)
quant = temp;
- begin = quant;
+ interval.begin = quant;
}
subtotal_transactions::operator()(xact);