]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
fixed iso-8859-1 handling to report failures
[wxWidgets.git] / src / generic / vlbox.cpp
index df023053a3a10b77a992c7571ee972e995a4f957..0b978eaaef16ecaa2897cb43ec8895a44262b853 100644 (file)
@@ -486,7 +486,7 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event)
     // flags for DoHandleItemClick()
     int flags = ItemClick_Kbd;
 
-    int current = 0; // just to silent the stupid compiler warnings
+    int current;
     switch ( event.GetKeyCode() )
     {
         case WXK_HOME:
@@ -539,6 +539,7 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event)
 
         default:
             event.Skip();
+            current = 0; // just to silent the stupid compiler warnings
             return;
     }