summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-17 05:13:42 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-17 05:13:42 -0400
commitcc7f3ec664808ea0f091e0017474cd1a5db29823 (patch)
tree9861775cd9b327ab7d70e7610b9324a0dcc0784b /textual.cc
parent3c6fd0f80492b609e7520fe1609d4e5f9f4bd503 (diff)
downloadfork-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.cc3
1 files changed, 2 insertions, 1 deletions
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);