riched20: Move the code to clear the cell bottom out of the loop.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
378a86b8b6
commit
3f0c4d5c72
|
@ -1015,22 +1015,20 @@ static void draw_paragraph( ME_Context *c, ME_Paragraph *para )
|
||||||
ME_DebugWrite(c->hDC, &pt, buf);
|
ME_DebugWrite(c->hDC, &pt, buf);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case diCell:
|
|
||||||
/* Clear any space at the bottom of the cell after the text. */
|
|
||||||
if (para->nFlags & (MEPF_ROWSTART|MEPF_ROWEND))
|
|
||||||
break;
|
|
||||||
y += height;
|
|
||||||
rc.top = c->pt.y + para->pt.y + para->nHeight;
|
|
||||||
rc.bottom = c->pt.y + p->member.cell.pt.y + p->member.cell.nHeight;
|
|
||||||
if (RectVisible(c->hDC, &rc))
|
|
||||||
PatBlt(c->hDC, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, PATCOPY);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
no++;
|
no++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (para_cell( para ))
|
||||||
|
{
|
||||||
|
/* Clear any space at the bottom of the cell after the text. */
|
||||||
|
rc.top = c->pt.y + para->pt.y + para->nHeight;
|
||||||
|
rc.bottom = c->pt.y + cell->pt.y + cell->nHeight;
|
||||||
|
PatBlt( c->hDC, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, PATCOPY );
|
||||||
|
}
|
||||||
|
|
||||||
draw_table_borders( c, para );
|
draw_table_borders( c, para );
|
||||||
draw_para_number( c, para );
|
draw_para_number( c, para );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue