From 92ad37af674770b7b7e86c64d69494e9a86a2f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 20 Apr 2008 11:39:47 +0000 Subject: [PATCH] fixed wxHyperlinkCtrl XRC handler to not crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xrc/xh_hyperlink.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xrc/xh_hyperlink.cpp b/src/xrc/xh_hyperlink.cpp index 7d0f0d5c98..d471b1aa5c 100644 --- a/src/xrc/xh_hyperlink.cpp +++ b/src/xrc/xh_hyperlink.cpp @@ -56,7 +56,7 @@ wxHyperlinkCtrlXmlHandler::wxHyperlinkCtrlXmlHandler() XRC_ADD_STYLE(wxHL_ALIGN_RIGHT); XRC_ADD_STYLE(wxHL_ALIGN_CENTRE); XRC_ADD_STYLE(wxHL_DEFAULT_STYLE); - + AddWindowStyles(); } @@ -64,12 +64,13 @@ wxObject *wxHyperlinkCtrlXmlHandler::DoCreateResource() { XRC_MAKE_INSTANCE(control, wxHyperlinkCtrl) - SetupWindow(control); control->Create(m_parentAsWindow, GetID(), GetParamValue(wxT("label")), GetParamValue(wxT("url")), GetPosition(), GetSize(), GetStyle(wxT("style"), wxHL_DEFAULT_STYLE)); + SetupWindow(control); + return control; }