mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 22:16:17 +02:00
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:
parent
ea39d588f5
commit
15cde7a988
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user