summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc3
1 files changed, 2 insertions, 1 deletions
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);