]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
index 9bd107d566bf00ca62c4eeb5ec72203e0cf77948..6f5bfe39a5463842bd540d6c1b8a8cbad16d05e6 100644 (file)
@@ -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);