From 6e9e2d94b4acddfe170008eaa46a835df9e8c2a3 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 24 Nov 2005 16:53:48 +0000 Subject: [PATCH] Applied patch [ 1351847 ] wxTextXtrl Undo/Redo Bug (sic) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index f2c219fba4..a04437dc77 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -961,7 +961,8 @@ void wxTextCtrl::DoWriteText(const wxString& value, bool selectionOnly) UpdatesCountFilter ucf(m_updatesCount); ::SendMessage(GetHwnd(), selectionOnly ? EM_REPLACESEL : WM_SETTEXT, - 0, (LPARAM)valueDos.c_str()); + // EM_REPLACESEL takes 1 to indicate the operation should be redoable + selectionOnly ? 1 : 0, (LPARAM)valueDos.c_str()); if ( !ucf.GotUpdate() ) { -- 2.45.2