From bbeed8c70716cd70cfd398cce7788a4b95eded81 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 30 Mar 2000 17:05:57 +0000 Subject: [PATCH] refresh menu item should work now git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@6994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/mdi/mdi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/mdi/mdi.cpp b/samples/mdi/mdi.cpp index 892bdd5537..34e515c034 100644 --- a/samples/mdi/mdi.cpp +++ b/samples/mdi/mdi.cpp @@ -417,7 +417,8 @@ void MyChild::OnQuit(wxCommandEvent& WXUNUSED(event)) void MyChild::OnRefresh(wxCommandEvent& event) { - Refresh(); + if ( canvas ) + canvas->Refresh(); } void MyChild::OnActivate(wxActivateEvent& event)