From bffdc6431d86a3f483c1fc2708526cae28d39f4b Mon Sep 17 00:00:00 2001 From: Levin Du Date: Tue, 29 Jul 2008 17:37:35 +0800 Subject: fix beg_line bug --- emacs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emacs.cc') diff --git a/emacs.cc b/emacs.cc index ed0674a2..7551b37c 100644 --- a/emacs.cc +++ b/emacs.cc @@ -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 << "\""; -- cgit v1.2.3