]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_listc.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / xrc / xh_listc.cpp
index acce070d341d53ab3ebd7335f355ebd242bbc909..b9a9c2d059770f14566770cf307fab173ba12cb9 100644 (file)
@@ -150,7 +150,7 @@ void wxListCtrlXmlHandler::HandleListItem()
     if (HasParam(wxT("data")))
         item.SetData(GetLong(wxT("data")));
     if (HasParam(wxT("font")))
-        item.SetFont(GetFont());
+        item.SetFont(GetFont(wxT("font"), list));
     if (HasParam(wxT("state")))
         item.SetState(GetStyle(wxT("state")));
     if (HasParam(wxT("textcolour")))