X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4dbfe148c3dca9e9e8aa2954c257cfa75af01ab..a8f2578758be3956d1cb55503c8cb773c7c96322:/src/msw/checklst.cpp diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp index 74b3123938..5e46c81073 100644 --- a/src/msw/checklst.cpp +++ b/src/msw/checklst.cpp @@ -40,6 +40,7 @@ #include "wx/settings.h" #include "wx/dcmemory.h" #include "wx/msw/checklst.h" +#include "wx/log.h" #include #include @@ -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; } @@ -364,7 +365,7 @@ void wxCheckListBox::OnChar(wxKeyEvent& event) if ( event.KeyCode() == WXK_SPACE ) GetItem(GetSelection())->Toggle(); else - wxListBox::OnChar(event); + event.Skip(); } void wxCheckListBox::OnLeftClick(wxMouseEvent& event)