diff --git a/components/richmemo/richmemortf.pas b/components/richmemo/richmemortf.pas index 68d71bef6..c04b21578 100644 --- a/components/richmemo/richmemortf.pas +++ b/components/richmemo/richmemortf.pas @@ -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