diff options
author | John Wiegley <johnw@newartisans.com> | 2005-02-18 07:11:59 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:05 -0400 |
commit | 0f98c9235f5106d18b33d026b99edbcfdcd66478 (patch) | |
tree | 78b66f2b6a276ee048184ba6c1fdd4ac96842d82 /amount.cc | |
parent | 816e15dcf8768d184b81c7e947341ad64c30b2c5 (diff) | |
download | fork-ledger-0f98c9235f5106d18b33d026b99edbcfdcd66478.tar.gz fork-ledger-0f98c9235f5106d18b33d026b99edbcfdcd66478.tar.bz2 fork-ledger-0f98c9235f5106d18b33d026b99edbcfdcd66478.zip |
*** empty log message ***
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 // and precision, if one has been defined. - if (default_commodity) { - commodity->flags = default_commodity->flags; - commodity->precision = default_commodity->precision; - } + if (default_commodity) + commodity->flags = + (default_commodity->flags & ~COMMODITY_STYLE_THOUSANDS); + return commodity; } |