mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-06 17:13:49 +01:00
guard against dereferencing null in the previous
This commit is contained in:
@@ -18,7 +18,9 @@ void wxTabTraversalWrapperCharHook(wxKeyEvent &event)
|
||||
if (event.GetKeyCode() == WXK_TAB) {
|
||||
auto focus = wxWindow::FindFocus();
|
||||
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
|
||||
event.Skip();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user