riched20: Correctly set the row's x position.

This commit is contained in:
Huw Davies 2013-02-26 13:19:49 +00:00 committed by Alexandre Julliard
parent 5db4741d0b
commit e68e6ff740
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ static void ME_InsertRowStart(ME_WrapContext *wc, const ME_DisplayItem *pEnd)
shift = max((wc->nAvailWidth-width)/2, 0);
if (align == PFA_RIGHT)
shift = max(wc->nAvailWidth-width, 0);
row->member.row.pt.x = row->member.row.nLMargin + shift;
for (p = wc->pRowStart; p!=pEnd; p = p->next)
{
if (p->type==diRun) { /* FIXME add more run types */