X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c8392cac2d36d0d211432e71d3b24d3d93c22db..2c4c39878247f4b7b09b79e29b90e0b718b0d296:/src/generic/vlbox.cpp?ds=sidebyside diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index df023053a3..0b978eaaef 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -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; }