summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 14:18:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 15:41:48 -0400
commite05f29bff0c8c566845c06089aa5416a5166914f (patch)
tree1dd519067b9498658ae5be0208191a7ee671fe97 /src/report.h
parenta181ac52d37b339ccc6723e8b74655bba338e5ef (diff)
downloadfork-ledger-e05f29bff0c8c566845c06089aa5416a5166914f.tar.gz
fork-ledger-e05f29bff0c8c566845c06089aa5416a5166914f.tar.bz2
fork-ledger-e05f29bff0c8c566845c06089aa5416a5166914f.zip
Don't use auto-widths for widths explicitly given
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/src/report.h b/src/report.h
index 47a073d1..242792b0 100644
--- a/src/report.h
+++ b/src/report.h
@@ -565,10 +565,15 @@ public:
OPTION_(report_t, wide, DO() { // -w
parent->HANDLER(date_width_).on_with(9L);
+ parent->HANDLER(date_width_).specified = true;
parent->HANDLER(payee_width_).on_with(35L);
+ parent->HANDLER(payee_width_).specified = true;
parent->HANDLER(account_width_).on_with(39L);
+ parent->HANDLER(account_width_).specified = true;
parent->HANDLER(amount_width_).on_with(22L);
+ parent->HANDLER(amount_width_).specified = true;
parent->HANDLER(total_width_).on_with(22L);
+ parent->HANDLER(total_width_).specified = true;
});
OPTION_(report_t, yearly, DO() { // -Y
@@ -576,20 +581,25 @@ public:
});
OPTION__(report_t, date_width_,
- CTOR(report_t, date_width_) { on_with(9L); }
- DO_(args) { value = args[0].to_long(); });
+ bool specified;
+ CTOR(report_t, date_width_) { on_with(9L); specified = false; }
+ DO_(args) { value = args[0].to_long(); specified = true; });
OPTION__(report_t, payee_width_,
- CTOR(report_t, payee_width_) { on_with(20L); }
- DO_(args) { value = args[0].to_long(); });
+ bool specified;
+ CTOR(report_t, payee_width_) { on_with(20L); specified = false; }
+ DO_(args) { value = args[0].to_long(); specified = true; });
OPTION__(report_t, account_width_,
- CTOR(report_t, account_width_) { on_with(23L); }
- DO_(args) { value = args[0].to_long(); });
+ bool specified;
+ CTOR(report_t, account_width_) { on_with(23L); specified = false; }
+ DO_(args) { value = args[0].to_long(); specified = true; });
OPTION__(report_t, amount_width_,
- CTOR(report_t, amount_width_) { on_with(12L); }
- DO_(args) { value = args[0].to_long(); });
+ bool specified;
+ CTOR(report_t, amount_width_) { on_with(12L); specified = false; }
+ DO_(args) { value = args[0].to_long(); specified = true; });
OPTION__(report_t, total_width_,
- CTOR(report_t, total_width_) { on_with(12L); }
- DO_(args) { value = args[0].to_long(); });
+ bool specified;
+ CTOR(report_t, total_width_) { on_with(12L); specified = false; }
+ DO_(args) { value = args[0].to_long(); specified = true; });
};
} // namespace ledger