mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix parse of commodity namespace from scheme istream.
Just ignore 2 instead of ignoring 1 twice. No ifdef required.
This commit is contained in:
parent
0bd9033bb3
commit
99eaa81a28
@ -414,14 +414,10 @@ gnc_option_from_scheme (std::istream& iss, OptType& opt)
|
|||||||
{
|
{
|
||||||
iss.ignore(strlen(commodity_scm_intro) + 1, '"');
|
iss.ignore(strlen(commodity_scm_intro) + 1, '"');
|
||||||
std::getline(iss, name_space, '"');
|
std::getline(iss, name_space, '"');
|
||||||
// libc++ doesn't consume the end character, libstdc++ does
|
|
||||||
#ifdef _LIBCPP_VERSION
|
|
||||||
iss.ignore(1, '"');
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
name_space = GNC_COMMODITY_NS_CURRENCY;
|
name_space = GNC_COMMODITY_NS_CURRENCY;
|
||||||
iss.ignore(1, '"');
|
iss.ignore(2, '"');
|
||||||
std::getline(iss, mnemonic, '"');
|
std::getline(iss, mnemonic, '"');
|
||||||
|
|
||||||
if (type == GncOptionUIType::COMMODITY)
|
if (type == GncOptionUIType::COMMODITY)
|
||||||
|
Loading…
Reference in New Issue
Block a user