From ebe31c7919e7a713d58ce76d1bb6874e59ce1d83 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 19 Aug 2019 10:55:30 +0100 Subject: [PATCH] riched20: Don't calculate the para numbering data if numbering is disabled. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/riched20/para.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/riched20/para.c b/dlls/riched20/para.c index 79f83573bf2..bde0654b666 100644 --- a/dlls/riched20/para.c +++ b/dlls/riched20/para.c @@ -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)