]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_tglbtn.cpp
Applied #9789: missing wxBORDER_THEME style in XRC
[wxWidgets.git] / src / xrc / xh_tglbtn.cpp
index 91f433d8a9cbd5c1afc4be21f8de1c8acc872b49..174252ae28b04096310ca25708f4ebbfe036a5e7 100644 (file)
 
 #include "wx/xrc/xh_tglbtn.h"
 #include "wx/tglbtn.h"
+#include "wx/button.h" // solely for wxBU_EXACTFIT
 
 IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler)
 
 wxToggleButtonXmlHandler::wxToggleButtonXmlHandler()
-: wxXmlResourceHandler()
+    : wxXmlResourceHandler()
 {
+    XRC_ADD_STYLE(wxBU_EXACTFIT);
+
     AddWindowStyles();
 }