X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfe5e918e6cbb28da4e4041b3fccfdaf538b247c..1a10485f79808b28093e87a2b4cc3d930fbc7b53:/wxPython/contrib/stc/gtk/stc_wrap.cpp diff --git a/wxPython/contrib/stc/gtk/stc_wrap.cpp b/wxPython/contrib/stc/gtk/stc_wrap.cpp index a5e2ad39c7..8cb353deec 100644 --- a/wxPython/contrib/stc/gtk/stc_wrap.cpp +++ b/wxPython/contrib/stc/gtk/stc_wrap.cpp @@ -714,6 +714,7 @@ static PyObject *_wrap_StyledTextCtrl_AddStyledText(PyObject *self, PyObject *ar arg2 = new wxMemoryBuffer(len); temp2 = True; memcpy(arg2->GetData(), str, len); + arg2->SetDataLen(len); } { PyThreadState* __tstate = wxPyBeginAllowThreads();