From f75e49b2fdf34805076db3608d87e06b1deffc25 Mon Sep 17 00:00:00 2001 From: skalogryz Date: Thu, 26 Jan 2017 18:29:39 +0000 Subject: [PATCH] richmemo: win32 fix the regerssion in getting sub text git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5708 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/richmemo/win32/win32richmemo.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/components/richmemo/win32/win32richmemo.pas b/components/richmemo/win32/win32richmemo.pas index 58a233adb..d68c17c70 100644 --- a/components/richmemo/win32/win32richmemo.pas +++ b/components/richmemo/win32/win32richmemo.pas @@ -1152,6 +1152,7 @@ begin RichEditManager.GetSelRange(Hnd, Orig); end; + RichEditManager.SetSelection(Hnd, TextStart, TextLen); isUnicode:=AsUnicode; if AsUnicode then utxt:=RichEditManager.GetTextW(Hnd, true)