Fixed import from XLSX files

since getText() already returns a string, the encode() function results in a byte object which is not compatible with setAlias().
This commit is contained in:
Tobias Bossert
2020-06-25 12:20:45 +00:00
committed by wwmayer
parent dafa7f1e2e
commit dd7563b5dc

View File

@@ -407,7 +407,7 @@ def handleWorkBook(theBook, sheetDict, Doc):
#print('Sheet Name: ', refList[0])
#print('Adress: ', adressList[0] + adressList[1])
actSheet, sheetFile = sheetDict[refList[0]]
actSheet.setAlias(adressList[0]+adressList[1], aliasName.encode('utf8'))
actSheet.setAlias(adressList[0]+adressList[1], aliasName)
def handleStrings(theStr, sList):
print('process Strings: ')