From cc7f3ec664808ea0f091e0017474cd1a5db29823 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 17 Sep 2008 05:13:42 -0400 Subject: Do not adjust display precision when parsing a pricing entry. Fixes: 7E5D2A6C-A15F-4BC8-A851-04A48E3E30F4 --- textual.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'textual.cc') diff --git a/textual.cc b/textual.cc index d711005b..2033106b 100644 --- a/textual.cc +++ b/textual.cc @@ -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); -- cgit v1.2.3