diff options
-rw-r--r-- | src/chain.cc | 2 | ||||
-rw-r--r-- | src/report.cc | 2 | ||||
-rw-r--r-- | src/report.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/chain.cc b/src/chain.cc index 44133391..1103fe42 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -87,7 +87,7 @@ post_handler_ptr chain_post_handlers(report_t& report, handler.reset(new changed_value_posts(handler, report, for_accounts_report, report.HANDLED(unrealized), - report.HANDLED(rounding))); + ! report.HANDLED(no_rounding))); // calc_posts computes the running total. When this appears will determine, // for example, whether filtered posts are included or excluded from the diff --git a/src/report.cc b/src/report.cc index 4dee4bb2..f3186e0b 100644 --- a/src/report.cc +++ b/src/report.cc @@ -916,6 +916,7 @@ option_t<report_t> * report_t::lookup_option(const char * p) case 'n': OPT_CH(collapse); else OPT(no_color); + else OPT(no_rounding); else OPT(no_titles); else OPT(no_total); else OPT(now_); @@ -955,7 +956,6 @@ option_t<report_t> * report_t::lookup_option(const char * p) else OPT(revalued); else OPT(revalued_only); else OPT(revalued_total_); - else OPT(rounding); break; case 's': OPT(sort_); diff --git a/src/report.h b/src/report.h index 104cfc73..78dc2165 100644 --- a/src/report.h +++ b/src/report.h @@ -267,6 +267,7 @@ public: HANDLER(market).report(out); HANDLER(meta_).report(out); HANDLER(monthly).report(out); + HANDLER(no_rounding).report(out); HANDLER(no_titles).report(out); HANDLER(no_total).report(out); HANDLER(now_).report(out); @@ -296,7 +297,6 @@ public: HANDLER(revalued).report(out); HANDLER(revalued_only).report(out); HANDLER(revalued_total_).report(out); - HANDLER(rounding).report(out); HANDLER(seed_).report(out); HANDLER(sort_).report(out); HANDLER(sort_all_).report(out); @@ -638,6 +638,7 @@ public: parent->HANDLER(color).off(); }); + OPTION(report_t, no_rounding); OPTION(report_t, no_titles); OPTION(report_t, no_total); @@ -821,7 +822,6 @@ public: set_expr(args[0].to_string(), args[1].to_string()); }); - OPTION(report_t, rounding); OPTION(report_t, seed_); OPTION_(report_t, sort_, DO_(args) { // -S |