mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-12 14:47:43 +02:00
guard against dereferencing null in the previous
This commit is contained in:
parent
3cecbcd44e
commit
6fad643000
@ -18,7 +18,9 @@ void wxTabTraversalWrapperCharHook(wxKeyEvent &event)
|
|||||||
if (event.GetKeyCode() == WXK_TAB) {
|
if (event.GetKeyCode() == WXK_TAB) {
|
||||||
auto focus = wxWindow::FindFocus();
|
auto focus = wxWindow::FindFocus();
|
||||||
if (dynamic_cast<wxGrid*>(focus)
|
if (dynamic_cast<wxGrid*>(focus)
|
||||||
|| (focus && dynamic_cast<wxGrid*>(focus->GetParent()->GetParent()))) {
|
|| (focus &&
|
||||||
|
focus->GetParent() &&
|
||||||
|
dynamic_cast<wxGrid*>(focus->GetParent()->GetParent()))) {
|
||||||
// Let wxGrid do its own TAB key handling
|
// Let wxGrid do its own TAB key handling
|
||||||
event.Skip();
|
event.Skip();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user