summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filters.cc3
-rw-r--r--src/report.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 651bc762..0e719037 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -416,6 +416,9 @@ void changed_value_xacts::operator()(xact_t& xact)
void subtotal_xacts::report_subtotal(const char * spec_fmt)
{
+ if (component_xacts.empty())
+ return;
+
date_t start;
date_t finish;
foreach (xact_t * xact, component_xacts) {
diff --git a/src/report.cc b/src/report.cc
index e4fde182..1227e317 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -356,7 +356,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
else OPT_(display_);
else OPT(display_amount_);
else OPT(display_total_);
- else OPT(dow);
+ else OPT_ALT(dow, days-of-week);
else OPT(date_width_);
break;
case 'e':