]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/activex/activex_wrap.cpp
compilation fix for !MSW
[wxWidgets.git] / wxPython / contrib / activex / activex_wrap.cpp
index 50fd6b3ee3855fa5df645cb2dc83986893c2d3f0..fe5b690d884e9e174364e24a3d92cf2b59f35615 100644 (file)
@@ -2196,6 +2196,7 @@ static PyObject *_wrap_new_ActiveXWindow(PyObject *self, PyObject *args, PyObjec
         }
     }
     {
+        if (!wxPyCheckForApp()) SWIG_fail;
         PyThreadState* __tstate = wxPyBeginAllowThreads();
         result = (wxActiveXWindow *)new wxActiveXWindow(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
         
@@ -3027,6 +3028,7 @@ static PyObject *_wrap_new_IEHtmlWindowBase(PyObject *self, PyObject *args, PyOb
         }
     }
     {
+        if (!wxPyCheckForApp()) SWIG_fail;
         PyThreadState* __tstate = wxPyBeginAllowThreads();
         result = (wxIEHtmlWindowBase *)new wxIEHtmlWindowBase(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);