X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54b9688254397c48ecf3b911a9b1757b5df76245..2912e35f1774b140b44cb9f9568aa5ab8122cd02:/utils/wxPython/src/gtk/printfw.cpp diff --git a/utils/wxPython/src/gtk/printfw.cpp b/utils/wxPython/src/gtk/printfw.cpp index eacc570f24..d6cbc799bd 100644 --- a/utils/wxPython/src/gtk/printfw.cpp +++ b/utils/wxPython/src/gtk/printfw.cpp @@ -326,7 +326,7 @@ static PyObject *_wrap_wxPrintData_GetPrinterName(PyObject *self, PyObject *args wxPy_END_ALLOW_THREADS; }{ - _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); + _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); } return _resultobj; }