diff options
author | Craig Earls <enderw88@gmail.com> | 2014-02-24 14:17:57 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-02-24 14:17:57 -0700 |
commit | 0b4ce5698622eb361e702825b187ebfceb970789 (patch) | |
tree | c892d4d8aae61bcbf0d071867be5697b75a5ddbb /src/textual.cc | |
parent | bb8e000d5b35fc4a42c61cf92037674c09d996ca (diff) | |
parent | bc08eed3cb1bdb4f67d1b77273f3254d0cf13be2 (diff) | |
download | ledger-0b4ce5698622eb361e702825b187ebfceb970789.tar.gz ledger-0b4ce5698622eb361e702825b187ebfceb970789.tar.bz2 ledger-0b4ce5698622eb361e702825b187ebfceb970789.zip |
Merge commit 'bc08eed3cb1bdb4f67d1b77273f3254d0cf13be2'
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc index 5536359d..d8648c93 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -416,7 +416,7 @@ void instance_t::read_next_directive(bool& error_flag) price_xact_directive(line); break; case 'Y': // set the current year - apply_year_directive(line); + apply_year_directive(line + 1); break; } } @@ -865,7 +865,7 @@ void instance_t::apply_year_directive(char * line) // This must be set to the last day of the year, otherwise partial // dates like "11/01" will refer to last year's november, not the // current year. - unsigned short year(lexical_cast<unsigned short>(skip_ws(line + 1))); + unsigned short year(lexical_cast<unsigned short>(skip_ws(line))); DEBUG("times.epoch", "Setting current year to " << year); epoch = datetime_t(date_t(year, 12, 31)); } |