winemac: Don't query the position of the one-past-the-end character with IMR_QUERYCHARPOSITION.
This means the resulting rectangle will be short, but we don't have much choice. Some apps don't cope properly with the one-past-the-end character. For example, Excel 2007 gets stuck in an infinite loop.
This commit is contained in:
parent
341db6d8d3
commit
cafb192ecc
|
@ -1509,7 +1509,7 @@ BOOL query_ime_char_rect(macdrv_query* query)
|
|||
*rect = CGRectMake(charpos.pt.x, charpos.pt.y, 0, charpos.cLineHeight);
|
||||
|
||||
/* iterate over rest of length to extend rect */
|
||||
for (i = 1; i <= range->length; i++)
|
||||
for (i = 1; i < range->length; i++)
|
||||
{
|
||||
charpos.dwSize = sizeof(charpos);
|
||||
charpos.dwCharPos = range->location + i;
|
||||
|
|
Loading…
Reference in New Issue