(find_commodity): Don't copy over the NOMARKET flag from the default

commodity.
This commit is contained in:
John Wiegley 2005-07-07 00:02:11 +00:00
parent cc2148a60d
commit e8df173270

View file

@ -1172,7 +1172,8 @@ commodity_t * commodity_t::find_commodity(const std::string& symbol,
// and precision, if one has been defined. // and precision, if one has been defined.
if (default_commodity) if (default_commodity)
commodity->flags = commodity->flags =
(default_commodity->flags & ~COMMODITY_STYLE_THOUSANDS); (default_commodity->flags & ~(COMMODITY_STYLE_THOUSANDS |
COMMODITY_STYLE_NOMARKET));
return commodity; return commodity;
} }