diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-17 05:13:42 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-17 05:13:42 -0400 |
commit | cc7f3ec664808ea0f091e0017474cd1a5db29823 (patch) | |
tree | 9861775cd9b327ab7d70e7610b9324a0dcc0784b /textual.cc | |
parent | 3c6fd0f80492b609e7520fe1609d4e5f9f4bd503 (diff) | |
download | fork-ledger-cc7f3ec664808ea0f091e0017474cd1a5db29823.tar.gz fork-ledger-cc7f3ec664808ea0f091e0017474cd1a5db29823.tar.bz2 fork-ledger-cc7f3ec664808ea0f091e0017474cd1a5db29823.zip |
Do not adjust display precision when parsing a pricing entry.
Fixes: 7E5D2A6C-A15F-4BC8-A851-04A48E3E30F4
Diffstat (limited to 'textual.cc')
-rw-r--r-- | textual.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -732,7 +732,8 @@ unsigned int textual_parser_t::parse(std::istream& in, std::string symbol; parse_symbol(symbol_and_price, symbol); - amount_t price(symbol_and_price); + amount_t price; + price.parse(symbol_and_price, AMOUNT_PARSE_NO_MIGRATE); if (commodity_t * commodity = commodity_t::find_or_create(symbol)) commodity->add_price(datetime, price); |