Skip to content

Commit 9882c64

Browse files
authored
Merge pull request #779 from xzfantom/hotfix/CurrencyImport
Fixes error when reading currencies in XML files from Gnucash 2.7.4 and above - fixes #777
2 parents a55ec29 + d85fb0d commit 9882c64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/gnucash/android/importer/GncXmlHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public void endElement(String uri, String localName, String qualifiedName) throw
432432
mAccount.setHidden(accountType == AccountType.ROOT); //flag root account as hidden
433433
break;
434434
case GncXmlHelper.TAG_COMMODITY_SPACE:
435-
if (characterString.equals("ISO4217")) {
435+
if (characterString.equals("ISO4217") || characterString.equals("CURRENCY") ) {
436436
mISO4217Currency = true;
437437
} else {
438438
// price of non-ISO4217 commodities cannot be handled

0 commit comments

Comments
 (0)