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.
This commit is contained in:
parent
7b5d4a82d7
commit
5aa3ea92b9
|
@ -2302,7 +2302,7 @@ void MainFrame::set_global_accels()
|
||||||
len++;
|
len++;
|
||||||
|
|
||||||
if (len) {
|
if (len) {
|
||||||
wxAcceleratorEntryUnicode tab[1000];
|
wxAcceleratorEntry tab[1000];
|
||||||
|
|
||||||
for (size_t i = 0, j = 0; i < accels.size(); i++)
|
for (size_t i = 0, j = 0; i < accels.size(); i++)
|
||||||
if (!accels[i].GetMenuItem())
|
if (!accels[i].GetMenuItem())
|
||||||
|
|
Loading…
Reference in New Issue