From f4cf4fdab2727577d02efdcff3f1773edf2262f0 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 11 Oct 2003 01:20:24 +0000 Subject: [PATCH] Patch #821454 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/samples/stc/stctest.cpp | 10 ++++++---- samples/stc/stctest.cpp | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/contrib/samples/stc/stctest.cpp b/contrib/samples/stc/stctest.cpp index 4f32ca3cd4..7fa8e3f17d 100644 --- a/contrib/samples/stc/stctest.cpp +++ b/contrib/samples/stc/stctest.cpp @@ -1,5 +1,5 @@ ////////////////////////////////////////////////////////////////////////////// -// File: app.cpp +// File: stctest.cpp // Purpose: STC test application // Maintainer: Otto Wyss // Created: 2003-09-01 @@ -191,7 +191,7 @@ IMPLEMENT_APP (App) bool App::OnInit () { wxInitAllImageHandlers(); - + // set application and vendor name SetAppName (APP_NAME); SetVendorName (APP_VENDOR); @@ -378,8 +378,10 @@ void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) { return; } } - Destroy(); } + m_edit->SetFilename (wxEmptyString); + m_edit->ClearAll(); + m_edit->SetSavePoint(); } // properties event handlers @@ -641,7 +643,7 @@ AppAbout::AppAbout (wxWindow *parent, SetSizerAndFit (totalpane); - CenterOnScreen(); + CenterOnScreen(); ShowModal(); } diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp index 4f32ca3cd4..7fa8e3f17d 100644 --- a/samples/stc/stctest.cpp +++ b/samples/stc/stctest.cpp @@ -1,5 +1,5 @@ ////////////////////////////////////////////////////////////////////////////// -// File: app.cpp +// File: stctest.cpp // Purpose: STC test application // Maintainer: Otto Wyss // Created: 2003-09-01 @@ -191,7 +191,7 @@ IMPLEMENT_APP (App) bool App::OnInit () { wxInitAllImageHandlers(); - + // set application and vendor name SetAppName (APP_NAME); SetVendorName (APP_VENDOR); @@ -378,8 +378,10 @@ void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) { return; } } - Destroy(); } + m_edit->SetFilename (wxEmptyString); + m_edit->ClearAll(); + m_edit->SetSavePoint(); } // properties event handlers @@ -641,7 +643,7 @@ AppAbout::AppAbout (wxWindow *parent, SetSizerAndFit (totalpane); - CenterOnScreen(); + CenterOnScreen(); ShowModal(); } -- 2.45.2