Range check error in SetCaretPos in Memo
Original Reporter info from Mantis: Petr-K
-
Reporter name:
Original Reporter info from Mantis: Petr-K
- Reporter name:
Description:
If NewPos is beyond number of lines in memo, then
SendMessageW(ACustomEdit.Handle, EM_LINEINDEX, NewPos.Y, 0) returns -1
I only change type CharIndex from LongWord to LongInt.
Patch is included.