*** empty log message ***
This commit is contained in:
parent
816e15dcf8
commit
0f98c9235f
2 changed files with 8 additions and 8 deletions
8
NEWS
8
NEWS
|
|
@ -14,10 +14,10 @@ New features:
|
||||||
|
|
||||||
- The "D <COMM>" command, released in 2.1, now requires a regular,
|
- The "D <COMM>" command, released in 2.1, now requires a regular,
|
||||||
commoditized amount, such as "D $1,000.00". This sets not only the
|
commoditized amount, such as "D $1,000.00". This sets not only the
|
||||||
default commodity, but also the default flags and precision to be
|
default commodity, but also several default flags to be used with
|
||||||
used with that commodity. It may also be used be many times; which
|
all commodities (such as whether all numbering should be American or
|
||||||
was most recently seen will be the default for the entries that
|
European). It may also be used be many times; which was most
|
||||||
follow.
|
recently seen will be the default for the entries that follow.
|
||||||
|
|
||||||
- Fixed several bugs with Ledger's XML data format.
|
- Fixed several bugs with Ledger's XML data format.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1158,10 +1158,10 @@ commodity_t * commodity_t::find_commodity(const std::string& symbol,
|
||||||
|
|
||||||
// Start out the new commodity with the default commodity's flags
|
// Start out the new commodity with the default commodity's flags
|
||||||
// and precision, if one has been defined.
|
// and precision, if one has been defined.
|
||||||
if (default_commodity) {
|
if (default_commodity)
|
||||||
commodity->flags = default_commodity->flags;
|
commodity->flags =
|
||||||
commodity->precision = default_commodity->precision;
|
(default_commodity->flags & ~COMMODITY_STYLE_THOUSANDS);
|
||||||
}
|
|
||||||
return commodity;
|
return commodity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue