From 3797cb1ad92c576d81f493d57fbaa5e576ea8c97 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 27 May 2005 03:48:05 +0000 Subject: (amount_t::parse): Only set the SUFFIXED flag if there is actually a commodity symbol. --- amount.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'amount.cc') diff --git a/amount.cc b/amount.cc index d1ce01ec..16d9cbf4 100644 --- a/amount.cc +++ b/amount.cc @@ -871,7 +871,8 @@ void amount_t::parse(std::istream& in, unsigned short flags) parse_commodity(in, symbol); - comm_flags |= COMMODITY_STYLE_SUFFIXED; + if (! symbol.empty()) + comm_flags |= COMMODITY_STYLE_SUFFIXED; } } else { parse_commodity(in, symbol); -- cgit v1.2.3