mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +00:00
[RICHED20]
- Fix ME_CharFromPoint relying on Wine's incorrect behavior of GetTextExtentExPointW. Already sent upstream(TM) See issue #6196,5784,6037,6095,6187,6513 for more details. svn path=/trunk/; revision=54234
This commit is contained in:
parent
53a2d1fe4f
commit
9d229f5644
1 changed files with 2 additions and 2 deletions
|
@ -440,7 +440,7 @@ int ME_CharFromPoint(ME_Context *c, int cx, ME_Run *run)
|
||||||
int fit = 0;
|
int fit = 0;
|
||||||
HGDIOBJ hOldFont;
|
HGDIOBJ hOldFont;
|
||||||
SIZE sz;
|
SIZE sz;
|
||||||
if (!run->strText->nLen)
|
if (!run->strText->nLen || cx <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (run->nFlags & MERF_TAB ||
|
if (run->nFlags & MERF_TAB ||
|
||||||
|
@ -498,7 +498,7 @@ int ME_CharFromPointCursor(ME_TextEditor *editor, int cx, ME_Run *run)
|
||||||
ME_Context c;
|
ME_Context c;
|
||||||
HGDIOBJ hOldFont;
|
HGDIOBJ hOldFont;
|
||||||
SIZE sz, sz2, sz3;
|
SIZE sz, sz2, sz3;
|
||||||
if (!run->strText->nLen)
|
if (!run->strText->nLen || cx <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (run->nFlags & (MERF_TAB | MERF_ENDCELL))
|
if (run->nFlags & (MERF_TAB | MERF_ENDCELL))
|
||||||
|
|
Loading…
Reference in a new issue