]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't return a broken accelerator object if the accelerator was not
authorJulian Smart <julian@anthemion.co.uk>
Wed, 12 Jan 2005 16:06:13 +0000 (16:06 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 12 Jan 2005 16:06:13 +0000 (16:06 +0000)
recognised.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/menucmn.cpp

index 0f49207fd0c0e0f700e4575f89a38883addad53d..731b1542546b72d3d4ae55583c086b0624ebeee1 100644 (file)
@@ -206,6 +206,7 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label)
                     {
                         wxLogDebug(wxT("Unrecognized accel key '%s', accel string ignored."),
                                    current.c_str());
+                        return NULL;
                     }
                 }
             }