X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82dfe81b283888d85bcc3d7516c16e0373b175be..850a256b833831d58f3ac8479348033b8a159aae:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 4118192416..fc1c256337 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -2076,7 +2076,7 @@ bool wxDocParentFrameAnyBase::TryProcessEvent(wxEvent& event) if ( wxView* const view = m_docManager->GetAnyUsableView() ) { wxWindow* win = view->GetFrame(); - if ( win != m_frame ) + if ( win && win != m_frame ) { // Notice that we intentionally don't use wxGetTopLevelParent() // here because we want to check both for the case of a child