]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix typo
authorAlex Bligh <alex@alex.org.uk>
Fri, 21 Jul 2006 15:05:44 +0000 (15:05 +0000)
committerAlex Bligh <alex@alex.org.uk>
Fri, 21 Jul 2006 15:05:44 +0000 (15:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/odcombo.cpp

index 1e9926cd8e74b2b3cad59f56516631b0565fcb48..b6c8c7e84383e916ef4f3f757a6258cf24553043 100644 (file)
@@ -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);