]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/checklst.cpp
Fixed incorrect return type
[wxWidgets.git] / src / msw / checklst.cpp
index 74b3123938b833af897fb7c125c10d8bb6fa3d37..a2ec7b6f5ae1809155c76356f09f67f8c002e3ea 100644 (file)
@@ -40,6 +40,7 @@
 #include "wx/settings.h"
 #include "wx/dcmemory.h"
 #include "wx/msw/checklst.h"
+#include "wx/log.h"
 
 #include <windows.h>
 #include <windowsx.h>
@@ -318,8 +319,8 @@ void wxCheckListBox::InsertItems(int nItems, const wxString items[], int pos)
 wxOwnerDrawn *wxCheckListBox::CreateItem(size_t nIndex)
 {
   wxCheckListBoxItem *pItem = new wxCheckListBoxItem(this, nIndex);
-  if ( m_windowFont.Ok() )
-    pItem->SetFont(m_windowFont);
+  if ( m_font.Ok() )
+    pItem->SetFont(m_font);
 
   return pItem;
 }