Skip to content

Commit d91a993

Browse files
author
florianlink
committed
fixed porting typo
git-svn-id: http://svn.code.sf.net/p/pythonqt/code/trunk@282 ea8d5007-eb21-0410-b261-ccb3ea6e24a9
1 parent b094918 commit d91a993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PythonQtConversion.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ QString PythonQtConv::PyObjGetString(PyObject* val, bool strict, bool& ok) {
736736
PyObject* str = PyObject_Str(val);
737737
if (str) {
738738
#ifdef PY3K
739-
r = QString::fromUtf8(PyUnicode_AsUTF8(val));
739+
r = QString::fromUtf8(PyUnicode_AsUTF8(str));
740740
#else
741741
r = QString(PyString_AS_STRING(str));
742742
#endif

0 commit comments

Comments
 (0)