From fea900aceb0b4e67345c78c7eb4c2dbcf738d743 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 12 Jun 2014 17:14:01 +0000 Subject: [PATCH] Allow using wxALIGN_CENTER in XRC for wxStaticText. Only wxALIGN_CENTRE was allowed previously in the XRC, while both worked in the code and also even in XRC but for wxSizer alignment. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xrc/xh_sttxt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xrc/xh_sttxt.cpp b/src/xrc/xh_sttxt.cpp index da93c2a44c..c5de25804e 100644 --- a/src/xrc/xh_sttxt.cpp +++ b/src/xrc/xh_sttxt.cpp @@ -30,6 +30,7 @@ wxStaticTextXmlHandler::wxStaticTextXmlHandler() XRC_ADD_STYLE(wxST_NO_AUTORESIZE); XRC_ADD_STYLE(wxALIGN_LEFT); XRC_ADD_STYLE(wxALIGN_RIGHT); + XRC_ADD_STYLE(wxALIGN_CENTER); XRC_ADD_STYLE(wxALIGN_CENTRE); AddWindowStyles(); }