Author: tfaber
Date: Sat Oct 22 20:55:11 2011
New Revision: 54234
URL:
http://svn.reactos.org/svn/reactos?rev=54234&view=rev
Log:
[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.
Modified:
trunk/reactos/dll/win32/riched20/run.c
Modified: trunk/reactos/dll/win32/riched20/run.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/riched20/run.c?r…
==============================================================================
--- trunk/reactos/dll/win32/riched20/run.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/riched20/run.c [iso-8859-1] Sat Oct 22 20:55:11 2011
@@ -440,7 +440,7 @@
int fit = 0;
HGDIOBJ hOldFont;
SIZE sz;
- if (!run->strText->nLen)
+ if (!run->strText->nLen || cx <= 0)
return 0;
if (run->nFlags & MERF_TAB ||
@@ -498,7 +498,7 @@
ME_Context c;
HGDIOBJ hOldFont;
SIZE sz, sz2, sz3;
- if (!run->strText->nLen)
+ if (!run->strText->nLen || cx <= 0)
return 0;
if (run->nFlags & (MERF_TAB | MERF_ENDCELL))