X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82dfe81b283888d85bcc3d7516c16e0373b175be..083c9c2088ab2ecf90093e5ed8f24faf73e2adf7:/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