From: Robin Dunn Date: Tue, 6 Jul 2004 21:19:38 +0000 (+0000) Subject: reSWIGged X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eab6e45eef7030527f540c62047fb726b6afc8b8 reSWIGged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/gtk/_gdi_wrap.cpp b/wxPython/src/gtk/_gdi_wrap.cpp index 72a8fe030a..68a9683ecd 100644 --- a/wxPython/src/gtk/_gdi_wrap.cpp +++ b/wxPython/src/gtk/_gdi_wrap.cpp @@ -1089,6 +1089,7 @@ static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject temp1 = True; } { + if (!wxPyCheckForApp()) SWIG_fail; PyThreadState* __tstate = wxPyBeginAllowThreads(); result = (wxColour *)new wxColour((wxString const &)*arg1); diff --git a/wxPython/src/mac/_gdi_wrap.cpp b/wxPython/src/mac/_gdi_wrap.cpp index 9bd107d566..6f5bfe39a5 100644 --- a/wxPython/src/mac/_gdi_wrap.cpp +++ b/wxPython/src/mac/_gdi_wrap.cpp @@ -1094,6 +1094,7 @@ static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject temp1 = True; } { + if (!wxPyCheckForApp()) SWIG_fail; PyThreadState* __tstate = wxPyBeginAllowThreads(); result = (wxColour *)new wxColour((wxString const &)*arg1);