From efcede3ca5ce31603ef8454a0bd6c19ef67b2aeb Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 23 May 2010 01:11:16 -0600 Subject: [PATCH] Fix to an interaction between --period and --sort Fixes 3AAB00ED-9904-4380-8988-16506B0AFE08 --- src/report.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/report.cc b/src/report.cc index 4c8f4060..dfdc77cc 100644 --- a/src/report.cc +++ b/src/report.cc @@ -145,9 +145,6 @@ void report_t::normalize_options(const string& verb) // then ignore the period since the begin/end are the only interesting // details. if (HANDLED(period_)) { - if (! HANDLED(sort_all_)) - HANDLER(sort_xacts_).on_only(string("?normalize")); - date_interval_t interval(HANDLER(period_).str()); optional begin = interval.begin(session.current_year); @@ -164,6 +161,8 @@ void report_t::normalize_options(const string& verb) if (! interval.duration) HANDLER(period_).off(); + else if (! HANDLED(sort_all_)) + HANDLER(sort_xacts_).on_only(string("?normalize")); } // If -j or -J were specified, set the appropriate format string now so as