Don't try to parse a display predicate if none has been set.

This commit is contained in:
John Wiegley 2008-09-18 11:42:32 -04:00
parent 1fcf7b5fc1
commit e4be662c51

View file

@ -113,7 +113,7 @@ public:
}
bool should_display(account_t& account) {
if (! disp_pred.predicate)
if (! disp_pred.predicate && ! report.display_predicate.empty())
disp_pred.predicate.parse(report.display_predicate);
return disp_pred(account);
}