From 6240ecf153bef7fc1b4fe202fdc76ba788da3396 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 2 Apr 2020 09:03:35 -0700 Subject: [PATCH] Fix virtual call of Destroy() in wxDocChildFrameAny Allow derived class override to be called. See #18694 --- include/wx/docview.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/docview.h b/include/wx/docview.h index 64378d574f..1770170c09 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -737,7 +737,7 @@ private: void OnCloseWindow(wxCloseEvent& event) { if ( CloseView(event) ) - BaseClass::Destroy(); + this->Destroy(); //else: vetoed }