From 7d098cfdd754c035d623cd99a8fb79ee3d3e2f9b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 12 Jan 2005 16:06:13 +0000 Subject: [PATCH] Don't return a broken accelerator object if the accelerator was not recognised. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/menucmn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 0f49207fd0..731b154254 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -206,6 +206,7 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label) { wxLogDebug(wxT("Unrecognized accel key '%s', accel string ignored."), current.c_str()); + return NULL; } } } -- 2.45.2