X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec376c8fd9ff813392030426acd2317c6fa6527e..033a5ff5c71ee7e787a3bc7e9be55ca0f5d80fa1:/src/xrc/xh_fontpicker.cpp diff --git a/src/xrc/xh_fontpicker.cpp b/src/xrc/xh_fontpicker.cpp index 1470369e64..f0436bbccf 100644 --- a/src/xrc/xh_fontpicker.cpp +++ b/src/xrc/xh_fontpicker.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_clrpicker.cpp -// Purpose: XML resource handler for wxColourPickerCtrl +// Name: src/xrc/xh_fontpicker.cpp +// Purpose: XML resource handler for wxFontPickerCtrl // Author: Francesco Montorsi // Created: 2006-04-17 // RCS-ID: $Id$ @@ -36,14 +36,14 @@ wxObject *wxFontPickerCtrlXmlHandler::DoCreateResource() XRC_MAKE_INSTANCE(picker, wxFontPickerCtrl) wxFont f = *wxNORMAL_FONT; - if (HasParam(wxT("default-font"))) - f = GetFont(wxT("default-font")); + if (HasParam(wxT("value"))) + f = GetFont(wxT("value")); picker->Create(m_parentAsWindow, GetID(), f, GetPosition(), GetSize(), - GetStyle(_T("style"), wxFNTP_DEFAULT_STYLE), + GetStyle(wxT("style"), wxFNTP_DEFAULT_STYLE), wxDefaultValidator, GetName());