summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-02-05 11:08:58 -0700
committerCraig Earls <enderw88@gmail.com>2013-02-05 11:08:58 -0700
commit40602cd63424ce4e07905a35eb2acf31724c74c0 (patch)
treede0892898776c508102ed1aa1884fd00801ddad8
parent71de1e6cdcdea280f5bf63a8a2e3d7a22411c663 (diff)
parentbc5563289cd838f1bb33b86706927fae2e0d670f (diff)
downloadfork-ledger-40602cd63424ce4e07905a35eb2acf31724c74c0.tar.gz
fork-ledger-40602cd63424ce4e07905a35eb2acf31724c74c0.tar.bz2
fork-ledger-40602cd63424ce4e07905a35eb2acf31724c74c0.zip
Merge commit 'bc5563289cd838f1bb33b86706927fae2e0d670f' into next
-rw-r--r--src/timelog.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/timelog.cc b/src/timelog.cc
index 9516ba17..acd8a4fa 100644
--- a/src/timelog.cc
+++ b/src/timelog.cc
@@ -169,10 +169,8 @@ void time_log_t::close()
foreach (account_t * account, accounts) {
DEBUG("timelog", "Clocking out from account " << account->fullname());
- clock_out_from_timelog(time_xacts,
- time_xact_t(none, CURRENT_TIME(), account),
- context);
- context.count++;
+ context.count += clock_out_from_timelog
+ (time_xacts, time_xact_t(none, CURRENT_TIME(), account), context);
}
assert(time_xacts.empty());
}