riched20: Don't calculate the para numbering data if numbering is disabled.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2019-08-19 10:55:30 +01:00 committed by Alexandre Julliard
parent cfeb4358b5
commit ebe31c7919
1 changed files with 1 additions and 0 deletions

View File

@ -401,6 +401,7 @@ void para_num_init( ME_Context *c, ME_Paragraph *para )
static const WCHAR spaceW[] = {' ', 0};
SIZE sz;
if (!para->fmt.wNumbering) return;
if (para->para_num.style && para->para_num.text) return;
if (!para->para_num.style)