Commit 4c322698 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Set the end-of-paragraph run width to that of a space.

parent c8a90e5d
......@@ -611,17 +611,16 @@ SIZE ME_GetRunSizeCommon(ME_Context *c, const ME_Paragraph *para, ME_Run *run, i
int startx, int *pAscent, int *pDescent)
{
SIZE size;
int nMaxLen = run->len;
WCHAR spaceW[] = {' ',0};
if (nLen>nMaxLen)
nLen = nMaxLen;
nLen = min( nLen, run->len );
/* FIXME the following call also ensures that TEXTMETRIC structure is filled
* this is wasteful for MERF_NONTEXT runs, but that shouldn't matter
* in practice
*/
if (para->nFlags & MEPF_COMPLEX)
if (run->nFlags & MERF_ENDPARA)
{
nLen = min( nLen, 1 );
ME_GetTextExtent(c, spaceW, nLen, run->style, &size);
}
else if (para->nFlags & MEPF_COMPLEX)
{
size.cx = run->nWidth;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment