]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/window.h
Don't use images for wxNotebook because of crash
[wxWidgets.git] / include / wx / window.h
index 398d332d46e9495f15ebba778ab7b1cc45647c3d..ce771ed7d288fa9c8e91de3b32261091c48f7ba4 100644 (file)
@@ -1213,7 +1213,7 @@ inline int NewControlId() { return wxWindowBase::NewControlId(); }
 class WXDLLEXPORT wxWindowAccessible: public wxAccessible
 {
 public:
-    wxWindowAccessible(wxWindow* win): wxAccessible(win) {}
+    wxWindowAccessible(wxWindow* win): wxAccessible(win) { if (win) win->SetAccessible(this); }
     virtual ~wxWindowAccessible() {};
 
 // Overridables