SynEdit: Fix position for IME (e.g. Candidate window). Requests are received before "StartComposition". Issue #0035682

git-svn-id: trunk@61340 -
This commit is contained in:
martin 2019-06-07 17:29:16 +00:00
parent ea39d588f5
commit 15cde7a988

View File

@ -568,6 +568,8 @@ begin
IMR_QUERYCHARPOSITION: begin
cp := PIMECHARPOSITION(Msg.lParam);
p1 := FImeBlockSelection.StartLineBytePos;
if not FInCompose then
p1 := CaretObj.LineBytePos;
CWidth := ViewedTextBuffer.GetPhysicalCharWidths(FImeBlockSelection.StartLinePos - 1);
x := p1.x - 1;