summaryrefslogtreecommitdiff
path: root/src/output.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-18 11:42:32 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-18 11:42:32 -0400
commite4be662c513f95a19dc30c2b32cd89968e16d09d (patch)
treee0827279ac3e2a63797c83635fca55bd187e97f9 /src/output.h
parent1fcf7b5fc1eb107178b009fcc9208faa5f73cdbf (diff)
downloadfork-ledger-e4be662c513f95a19dc30c2b32cd89968e16d09d.tar.gz
fork-ledger-e4be662c513f95a19dc30c2b32cd89968e16d09d.tar.bz2
fork-ledger-e4be662c513f95a19dc30c2b32cd89968e16d09d.zip
Don't try to parse a display predicate if none has been set.
Diffstat (limited to 'src/output.h')
-rw-r--r--src/output.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output.h b/src/output.h
index 01b5221f..af594cda 100644
--- a/src/output.h
+++ b/src/output.h
@@ -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);
}