X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c1dc9f8394c1488ad8e7d945e6f943f7b34554ce..43f4e852a1b2ac37c3db6a2b87315192ac549191:/src/xrc/xh_chckl.cpp diff --git a/src/xrc/xh_chckl.cpp b/src/xrc/xh_chckl.cpp index f76d25b38d..c8f853a51e 100644 --- a/src/xrc/xh_chckl.cpp +++ b/src/xrc/xh_chckl.cpp @@ -25,6 +25,8 @@ #include "wx/checklst.h" #endif +#include "wx/xml/xml.h" + IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler) wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler() @@ -72,9 +74,9 @@ wxObject *wxCheckListBoxXmlHandler::DoCreateResource() { n = n->GetNext(); continue; } // checking boolean is a bit ugly here (see GetBool() ) - wxString v = n->GetPropVal(wxT("checked"), wxEmptyString); + wxString v = n->GetAttribute(wxT("checked"), wxEmptyString); v.MakeLower(); - if (v && v == wxT("1")) + if (v == wxT("1")) control->Check( i, true ); i++;