From a4d4f9979486eb82c05bd032e1452c2fd400249f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 7 Jun 2010 08:16:02 -0400 Subject: amount_t::print and value_t::print now use flags --- src/print.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/print.cc') diff --git a/src/print.cc b/src/print.cc index 703e885c..5a72b03e 100644 --- a/src/print.cc +++ b/src/print.cc @@ -172,13 +172,14 @@ namespace { if (post->amount_expr) { amt = post->amount_expr->text(); } else { - std::size_t amount_width = + int amount_width = (report.HANDLER(amount_width_).specified ? - report.HANDLER(amount_width_).value.to_long() : 12); + report.HANDLER(amount_width_).value.to_int() : 12); std::ostringstream amt_str; report.scrub(post->amount) - .print(amt_str, static_cast(amount_width), -1, true); + .print(amt_str, amount_width, -1, AMOUNT_PRINT_RIGHT_JUSTIFY | + AMOUNT_PRINT_NO_COMPUTED_ANNOTATIONS); amt = amt_str.str(); } -- cgit v1.2.3