From d9b72d25405c4229b6195b581e6723f95d77e31d Mon Sep 17 00:00:00 2001 From: Alex Bligh Date: Fri, 21 Jul 2006 15:05:44 +0000 Subject: [PATCH] Fix typo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/odcombo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index 1e9926cd8e..b6c8c7e843 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -265,7 +265,7 @@ bool wxVListBoxComboPopup::HandleKey( int keycode, bool saturate, wxChar unicode value-=10; StopPartialCompletion(); } - else if ( comboStyle && wxCB_READONLY ) + else if ( comboStyle & wxCB_READONLY ) { // Try partial completion @@ -426,7 +426,7 @@ void wxVListBoxComboPopup::OnKey(wxKeyEvent& event) int comboStyle = m_combo->GetWindowStyle(); int keycode = event.GetKeyCode(); // Process partial completion key codes here, but not the arrow keys as the base class will do that for us - if ((comboStyle && wxCB_READONLY) && + if ((comboStyle & wxCB_READONLY) && (keycode >= WXK_SPACE) && (keycode <=255) && (keycode != WXK_DELETE) && wxIsprint(keycode)) { OnComboKeyEvent(event); -- 2.45.2