diff options
author | Levin Du <zslevin@gmail.com> | 2008-07-29 17:37:35 +0800 |
---|---|---|
committer | Levin Du <zslevin@gmail.com> | 2008-07-29 17:37:35 +0800 |
commit | bffdc6431d86a3f483c1fc2708526cae28d39f4b (patch) | |
tree | 34dfd63a90f15160c65799ee185ad71516d4d009 /emacs.cc | |
parent | 7dfa17b2602a424ab0d8f137ea0fc9005cdf8f84 (diff) | |
download | ledger-bffdc6431d86a3f483c1fc2708526cae28d39f4b.tar.gz ledger-bffdc6431d86a3f483c1fc2708526cae28d39f4b.tar.bz2 ledger-bffdc6431d86a3f483c1fc2708526cae28d39f4b.zip |
fix beg_line bug
Diffstat (limited to 'emacs.cc')
-rw-r--r-- | emacs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ void format_emacs_transactions::write_entry(entry_t& entry) break; } - out << (((unsigned long)entry.beg_line) + 1) << " "; + out << ((unsigned long)entry.beg_line) << " "; std::time_t date = entry.date().when; out << "(" << (date / 65536) << " " << (date % 65536) << " 0) "; @@ -47,7 +47,7 @@ void format_emacs_transactions::operator()(transaction_t& xact) out << "\n"; } - out << " (" << (((unsigned long)xact.beg_line) + 1) << " "; + out << " (" << ((unsigned long)xact.beg_line) << " "; out << "\"" << xact_account(xact)->fullname() << "\" \"" << xact.amount << "\""; |