From 933b675ed41f626e6573a0c9c402acbc0283d2da Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Thu, 18 Sep 2003 11:10:51 +0000
Subject: [PATCH] corrected the example of wxMessageBox() usage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/function.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex
index 18b28a1470..0318e25402 100644
--- a/docs/latex/wx/function.tex
+++ b/docs/latex/wx/function.tex
@@ -1954,7 +1954,7 @@ For example:
   int answer = wxMessageBox("Quit program?", "Confirm",
                             wxYES_NO | wxCANCEL, main_frame);
   if (answer == wxYES)
-    delete main_frame;
+    main_frame->Close();
   ...
 \end{verbatim}
 
-- 
2.50.0

