]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_chckl.cpp
resolve the DLL linking problems with MSVC due to use of static variables of template...
[wxWidgets.git] / src / xrc / xh_chckl.cpp
index f76d25b38d5127e0c0173c6d4e8dd70da471bf6e..a633b112a9a62498f88981f61d52784099862470 100644 (file)
@@ -72,9 +72,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++;