diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 6e1ef4c162..102653afa1 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1844,7 +1844,9 @@ bool wxDocChildFrameAnyBase::CloseView(wxCloseEvent& event) { if ( m_childView ) { - if ( event.CanVeto() && !m_childView->Close(false) ) + // notice that we must call wxView::Close() and OnClose() called from + // it in any case, even if we know that we are going to close anyhow + if ( !m_childView->Close(false) && event.CanVeto() ) { event.Veto(); return false;