summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-07-07 00:02:11 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:14 -0400
commite8df1732704c1e540f0d052bd0c8f9697012e8d0 (patch)
treed15728a2c67608b84099c13a8ffe988b0f07b0c0
parentcc2148a60d607651c5b71b452f7477b712533445 (diff)
downloadfork-ledger-e8df1732704c1e540f0d052bd0c8f9697012e8d0.tar.gz
fork-ledger-e8df1732704c1e540f0d052bd0c8f9697012e8d0.tar.bz2
fork-ledger-e8df1732704c1e540f0d052bd0c8f9697012e8d0.zip
(find_commodity): Don't copy over the NOMARKET flag from the default
commodity.
-rw-r--r--amount.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/amount.cc b/amount.cc
index decebe38..aa38b3fe 100644
--- a/amount.cc
+++ b/amount.cc
@@ -1172,7 +1172,8 @@ commodity_t * commodity_t::find_commodity(const std::string& symbol,
// and precision, if one has been defined.
if (default_commodity)
commodity->flags =
- (default_commodity->flags & ~COMMODITY_STYLE_THOUSANDS);
+ (default_commodity->flags & ~(COMMODITY_STYLE_THOUSANDS |
+ COMMODITY_STYLE_NOMARKET));
return commodity;
}