summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-07 23:20:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-07 23:20:10 -0400
commit59c0692233812eeba568dac735d7b4d4576cf30a (patch)
tree79c3fa592dc5a57be4c6d2de7a47f1efdbf72562 /main.cc
parenteffa82793fbddce8c04ea9387b7389ac5b8f0a59 (diff)
downloadfork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.tar.gz
fork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.tar.bz2
fork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.zip
moved display only flags to dflags in both transactions and accounts
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index a3cfb5d2..31b56942 100644
--- a/main.cc
+++ b/main.cc
@@ -574,7 +574,9 @@ int main(int argc, char * argv[])
display_predicate_string = "T";
else if (command == "E")
display_predicate_string = "a";
- } else {
+ }
+
+ if (! display_predicate_string.empty()) {
#ifdef DEBUG
if (debug)
std::cerr << "disp-pred = " << display_predicate_string << std::endl;
@@ -712,8 +714,10 @@ int main(int argc, char * argv[])
if (const char * p = std::getenv("LEDGER_CACHE")) {
std::ofstream outstr(p);
assert(std::getenv("LEDGER"));
+#if 0
clear_transaction_display_flags(journal->entries.begin(),
journal->entries.end());
+#endif
write_binary_journal(outstr, journal.get(), std::getenv("LEDGER"));
}