mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[USER32] Edit: Fix rectangle overflow when inserting characters
Based on patch by JIRA contributor 'I_Kill_Bugs'. CORE-11475
This commit is contained in:
parent
56ccf8d832
commit
40dab7d5e5
1 changed files with 4 additions and 0 deletions
|
@ -805,7 +805,11 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
|
|||
if ((es->style & ES_CENTER) || (es->style & ES_RIGHT))
|
||||
rc.left = es->format_rect.left;
|
||||
else
|
||||
#ifdef __REACTOS__ /* CORE-11475 */
|
||||
rc.left = (short)LOWORD(EDIT_EM_PosFromChar(es, nstart_index, FALSE));
|
||||
#else
|
||||
rc.left = LOWORD(EDIT_EM_PosFromChar(es, nstart_index, FALSE));
|
||||
#endif
|
||||
rc.right = es->format_rect.right;
|
||||
SetRectRgn(hrgn, rc.left, rc.top, rc.right, rc.bottom);
|
||||
|
||||
|
|
Loading…
Reference in a new issue