]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/statbox.h
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / include / wx / statbox.h
index 41aae1166a310b1b57f3698eaa8758e75d13de94..e1ea580b4be7aedcc3ea842050c8bfc93f2c497a 100644 (file)
@@ -28,7 +28,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticBoxNameStr[];
 class WXDLLIMPEXP_CORE wxStaticBoxBase : public wxNavigationEnabled<wxControl>
 {
 public:
-    wxStaticBoxBase() { }
+    wxStaticBoxBase() { m_container.DisableSelfFocus(); }
 
     // overridden base class virtuals
     virtual bool HasTransparentBackground() { return true; }