diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index 091fd15e75..abe9d8d1da 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -416,7 +416,7 @@ void wxFrameBase::DoMenuUpdates(wxMenu* menu, wxWindow* focusWin) } if (item->GetSubMenu()) - DoMenuUpdates(item->GetSubMenu(), (wxWindow*) NULL); + DoMenuUpdates(item->GetSubMenu(), focusWin); } node = node->GetNext(); }