summaryrefslogtreecommitdiff
path: root/parse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'parse.cc')
-rw-r--r--parse.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse.cc b/parse.cc
index 231a8514..940c51db 100644
--- a/parse.cc
+++ b/parse.cc
@@ -292,7 +292,7 @@ void parse_automated_transactions(std::istream& in, book * ledger)
//
book * parse_ledger(std::istream& in, regexps_map& regexps,
- bool compute_balances)
+ bool compute_balances)
{
static char line[MAX_LINE + 1];
char c;
@@ -334,7 +334,9 @@ book * parse_ledger(std::istream& in, regexps_map& regexps,
break;
case '=': // automated transactions
+ do_compute = false;
parse_automated_transactions(in, ledger);
+ do_compute = compute_balances;
break;
default: