richmemo: preserving richmemo selection on intSaveStream. Patch by Matthew Shaffer. bug #34791

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7280 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
skalogryz
2020-01-13 14:45:00 +00:00
parent c35f7ea889
commit bb765a2605

View File

@ -798,9 +798,7 @@ begin
isitalic:=false;
iscolor:=0;
while Assigned(rng) do begin
ARich.SelStart:=rng.textStart;
ARich.SelLength:=rng.textLength;
u:=UTF8Decode(ARich.SelText);
u:=ARich.GetUText(rng.textStart, rng.textLength);
RtfOut('\f'+IntToStr(rng.fontId));
RtfOut('\fs'+IntToStr(rng.font.Size*2));
if (fsBold in rng.font.Style) then begin