]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/function.tex
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / docs / latex / wx / function.tex
index 18b28a1470f86c0f709ebaa063e58bc1e2d0b997..0318e25402b1bd6adcf0009ffcd5b14cb3760b05 100644 (file)
@@ -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}