summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2014-12-16 20:30:12 -0700
committerCraig Earls <enderw88@gmail.com>2014-12-16 20:30:12 -0700
commitb6cef4bc507712427e9c5e83495ba5104679712d (patch)
tree11cdcfd0db422cf6afa18d29e89c2ddc0429e744 /src/filters.cc
parentaf8767c9ab9d55ea1f0d789be9c7bdb73b022057 (diff)
parentacec0782003a3a949cbcc40694ff846015f64202 (diff)
downloadfork-ledger-b6cef4bc507712427e9c5e83495ba5104679712d.tar.gz
fork-ledger-b6cef4bc507712427e9c5e83495ba5104679712d.tar.bz2
fork-ledger-b6cef4bc507712427e9c5e83495ba5104679712d.zip
Merge branch 'master' of https://github.com/ledger/ledger
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters.cc b/src/filters.cc
index bdc2983b..d24188f5 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -983,7 +983,7 @@ void interval_posts::flush()
sort_posts_by_date());
// Determine the beginning interval by using the earliest post
- if (all_posts.front() &&
+ if (all_posts.size() > 0 && all_posts.front() &&
! interval.find_period(all_posts.front()->date()))
throw_(std::logic_error, _("Failed to find period for interval report"));