]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_fontpicker.cpp
use GetFileAttributes() to check for readonly files under Win9x, the NT method doesn...
[wxWidgets.git] / src / xrc / xh_fontpicker.cpp
index ce84a434944ad819507aa83717f1ed659574c89a..6222b3dfc34aa20c66c04ba2fad9c0a0bd090f6b 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        src/xrc/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,8 +36,8 @@ 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(),