From 1bf37bf5b1d13f681dbdd4d303356a4bcd1d8898 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Oct 2003 09:06:58 +0000 Subject: [PATCH] added test for cancelled END_EDIT git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/listctrl/listtest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index 2f43870e21..89bda1e810 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -716,7 +716,9 @@ void MyListCtrl::OnBeginLabelEdit(wxListEvent& event) void MyListCtrl::OnEndLabelEdit(wxListEvent& event) { - wxLogMessage( wxT("OnEndLabelEdit: %s"), event.m_item.m_text.c_str()); + wxLogMessage( wxT("OnEndLabelEdit: %s"), + event.IsEditCancelled() ? _T("[cancelled]") + : event.m_item.m_text.c_str()); } void MyListCtrl::OnDeleteItem(wxListEvent& event) -- 2.45.2