X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6af85fcd90fc50853ab0ce18721c522b053b065b..42ba812b705cec0ebef0fb65bb72d27a1378b316:/wxPython/src/msw/controls2.cpp diff --git a/wxPython/src/msw/controls2.cpp b/wxPython/src/msw/controls2.cpp index 97cadeefae..28308a836a 100644 --- a/wxPython/src/msw/controls2.cpp +++ b/wxPython/src/msw/controls2.cpp @@ -5036,7 +5036,7 @@ static wxWindow * wxPyListCtrl_GetMainWindow(wxPyListCtrl *self) { #ifdef __WXMSW__ return self; #else - return (wxWindow*)m_mainWin; + return (wxWindow*)self->m_mainWin; #endif } static PyObject *_wrap_wxListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {