From: Vadim Zeitlin Date: Fri, 20 Mar 2009 09:29:23 +0000 (+0000) Subject: add wxBU_EXACTFIT support to wxToggleButton XRC handler (closes #10228) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/61a9bd42022ae0e8ce8dd0e2ab84e9659fbc2c1e add wxBU_EXACTFIT support to wxToggleButton XRC handler (closes #10228) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xrc/xh_tglbtn.cpp b/src/xrc/xh_tglbtn.cpp index 91f433d8a9..c5f0b559e7 100644 --- a/src/xrc/xh_tglbtn.cpp +++ b/src/xrc/xh_tglbtn.cpp @@ -23,8 +23,10 @@ IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler) wxToggleButtonXmlHandler::wxToggleButtonXmlHandler() -: wxXmlResourceHandler() + : wxXmlResourceHandler() { + XRC_ADD_STYLE(wxBU_EXACTFIT); + AddWindowStyles(); }