(find_commodity): Don't copy over the NOMARKET flag from the default
commodity.
This commit is contained in:
parent
cc2148a60d
commit
e8df173270
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue