summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2014-12-28 14:45:39 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2014-12-29 11:08:10 +0100
commitba35340ca9c7351beab0ff9fa7a58591eb6ad39f (patch)
tree5a72f6f1deabd7140806c2ede802a279cb5b5756 /src/textual.cc
parent0462c887ae5814d08de7d2a860c41bb1a07bee52 (diff)
downloadfork-ledger-ba35340ca9c7351beab0ff9fa7a58591eb6ad39f.tar.gz
fork-ledger-ba35340ca9c7351beab0ff9fa7a58591eb6ad39f.tar.bz2
fork-ledger-ba35340ca9c7351beab0ff9fa7a58591eb6ad39f.zip
Bugfix 1038: empty reg report for this month period
when year was specified with literal Y or year directive, but not when using apply year.
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc
index f0df3b66..8007ca0d 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -285,6 +285,11 @@ void instance_t::parse()
}
}
+ if (apply_stack.front().value.type() == typeid(optional<datetime_t>))
+ epoch = boost::get<optional<datetime_t> >(apply_stack.front().value);
+
+ apply_stack.pop_front();
+
#if defined(TIMELOG_SUPPORT)
timelog.close();
#endif // TIMELOG_SUPPORT