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