Fix to budgeting when fixed dates are involved

This commit is contained in:
John Wiegley 2010-06-10 08:17:32 -04:00
parent 77c5df4053
commit 91a99fc88e

View file

@ -1154,8 +1154,7 @@ void budget_posts::report_budget_items(const date_t& date)
optional<date_t> begin = pair.first.start;
if (! begin) {
if (! pair.first.find_period(date))
throw_(std::runtime_error,
_("Something odd has happened at date %1") << date);
continue;
begin = pair.first.start;
}
assert(begin);