From a8e2a674a85b71c84c044c6cfa140e2bbfb58a4b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 27 Feb 2009 02:41:50 -0400 Subject: Fixes to entry note parsing --- src/textual.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/textual.cc') diff --git a/src/textual.cc b/src/textual.cc index bc221671..a804fb1c 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -1172,8 +1172,9 @@ xact_t * instance_t::parse_xact(char * line, // Parse the description text if (next && *next) { + char * p = next_element(next, true); xact->payee = next; - next = next_element(next, true); + next = p; } else { xact->payee = _(""); } @@ -1181,7 +1182,7 @@ xact_t * instance_t::parse_xact(char * line, // Parse the xact note if (next && *next == ';') - xact->append_note(next, current_year); + xact->append_note(++next, current_year); TRACE_STOP(xact_text, 1); -- cgit v1.2.3