(amount_t::parse): Only set the SUFFIXED flag if there is actually a
commodity symbol.
This commit is contained in:
parent
65bfc5756c
commit
3797cb1ad9
1 changed files with 2 additions and 1 deletions
|
|
@ -871,7 +871,8 @@ void amount_t::parse(std::istream& in, unsigned short flags)
|
||||||
|
|
||||||
parse_commodity(in, symbol);
|
parse_commodity(in, symbol);
|
||||||
|
|
||||||
comm_flags |= COMMODITY_STYLE_SUFFIXED;
|
if (! symbol.empty())
|
||||||
|
comm_flags |= COMMODITY_STYLE_SUFFIXED;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
parse_commodity(in, symbol);
|
parse_commodity(in, symbol);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue