Fix the problem that TSynMemo reports an error when the input method is enabled on Windows.

This commit is contained in:
ACTom 2023-10-31 14:57:36 +00:00 committed by Maxim Ganetsky
parent 9bb3e76ac7
commit 4fd606cdfd

View File

@ -513,7 +513,7 @@ begin
dec(i);
end;
p1.x := x + i + 1;
p1 := FriendEdit.ClientToScreen(TSynEdit(FriendEdit).ScreenXYToPixels(
p1 := FriendEdit.ClientToScreen(TCustomSynEdit(FriendEdit).ScreenXYToPixels(
FriendEdit.TextXYToScreenXY(p1)));
cp^.pt.y := p1.y;