From 5aa3ea92b9cfe18d1750d7d05ca0b615458d1341 Mon Sep 17 00:00:00 2001 From: Fabrice de Gans Date: Fri, 21 Apr 2023 14:58:42 -0700 Subject: [PATCH] Properly initialize wxAcceleratorTable The `wxAcceleratorTable` for the `GameArea` panel was initialized with an array of `wxAcceleratorEntryUnicode`, while the API calls for an array of `wxAcceleratorEntry`. This resulted in the array not being properly interpreted by the `wxAcceleratorEntry`. This fixes the issue by using `wxAcceleratorEntry` to instantiate the array. --- src/wx/guiinit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/guiinit.cpp b/src/wx/guiinit.cpp index 77a21b93..b927eb17 100644 --- a/src/wx/guiinit.cpp +++ b/src/wx/guiinit.cpp @@ -2302,7 +2302,7 @@ void MainFrame::set_global_accels() len++; if (len) { - wxAcceleratorEntryUnicode tab[1000]; + wxAcceleratorEntry tab[1000]; for (size_t i = 0, j = 0; i < accels.size(); i++) if (!accels[i].GetMenuItem())