summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 23:42:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 23:42:48 -0400
commit3c18d3054f36dec049809cbf3321eeeeadcf2349 (patch)
tree50fc570d9af29d5318ec4c3c3213d9e7d6aca862 /src
parentfc349389e3f074ae2ce22b93f3833f063f548a8f (diff)
downloadfork-ledger-3c18d3054f36dec049809cbf3321eeeeadcf2349.tar.gz
fork-ledger-3c18d3054f36dec049809cbf3321eeeeadcf2349.tar.bz2
fork-ledger-3c18d3054f36dec049809cbf3321eeeeadcf2349.zip
Restored the --base option
Diffstat (limited to 'src')
-rw-r--r--src/report.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/report.cc b/src/report.cc
index 1227e317..877e6bbb 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -141,7 +141,11 @@ value_t report_t::fn_market_value(call_scope_t& args)
value_t report_t::fn_strip(call_scope_t& args)
{
- return args[0].strip_annotations(what_to_keep());
+ value_t temp(args[0].strip_annotations(what_to_keep()));
+ if (HANDLED(base))
+ return temp;
+ else
+ return temp.unreduced();
}
value_t report_t::fn_rounded(call_scope_t& args)