X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a0475d515060e27205e7699e66304f37ea86ba..c50fa29f4330e46da62bb75a1e6a7bfe2a032ad0:/samples/widgets/odcombobox.cpp diff --git a/samples/widgets/odcombobox.cpp b/samples/widgets/odcombobox.cpp index 92823d895d..ee531cfa94 100644 --- a/samples/widgets/odcombobox.cpp +++ b/samples/widgets/odcombobox.cpp @@ -264,8 +264,7 @@ public: // If item is selected or even, or we are painting the // combo control itself, use the default rendering. - if ( GetVListBoxComboPopup()->IsCurrent((size_t)item) || - (flags & wxODCB_PAINTING_CONTROL) || + if ( (flags & (wxODCB_PAINTING_CONTROL|wxODCB_PAINTING_SELECTED)) || (item & 1) == 0 ) { wxOwnerDrawnComboBox::OnDrawBackground(dc,rect,item,flags);