py3: fixed error in spreadsheet

This commit is contained in:
Yorik van Havre
2016-02-03 12:40:22 -02:00
committed by wmayer
parent c3ba815730
commit 7ee46643fd

View File

@@ -483,7 +483,7 @@ PyObject* SheetPy::setAlias(PyObject *args)
#else
{
PyObject* unicode = PyUnicode_AsUTF8String(value);
v = QString::fromUtf8(PyString_AsString(unicode));
getSheetPtr()->setAlias(address, PyString_AsString(unicode));
Py_DECREF(unicode);
}
else if (PyString_Check(value))