Skip to content

Commit

Permalink
Merge pull request codinguser#779 from xzfantom/hotfix/CurrencyImport
Browse files Browse the repository at this point in the history
Fixes error when reading currencies in XML files from Gnucash 2.7.4 and above - fixes codinguser#777
  • Loading branch information
codinguser authored May 31, 2018
2 parents a55ec29 + d85fb0d commit 9882c64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public void endElement(String uri, String localName, String qualifiedName) throw
mAccount.setHidden(accountType == AccountType.ROOT); //flag root account as hidden
break;
case GncXmlHelper.TAG_COMMODITY_SPACE:
if (characterString.equals("ISO4217")) {
if (characterString.equals("ISO4217") || characterString.equals("CURRENCY") ) {
mISO4217Currency = true;
} else {
// price of non-ISO4217 commodities cannot be handled
Expand Down

0 comments on commit 9882c64

Please sign in to comment.