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 3efc4fee9e
commit 9b6ef8563b

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))