From c6acebf711335e09e3c8285a3de7471de2754af4 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 12 Mar 2018 15:13:36 +0000 Subject: Bug 699106: Correct progress figures when using display_list. The progress figures did not correctly add up to progress_max. Now they do. In addition, if we abort, the progress figure will accurately indicate how far we got. --- source/fitz/list-device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/fitz/list-device.c b/source/fitz/list-device.c index 39314b54..ca3425ab 100644 --- a/source/fitz/list-device.c +++ b/source/fitz/list-device.c @@ -1553,7 +1553,8 @@ fz_run_display_list(fz_context *ctx, fz_display_list *list, fz_device *dev, cons { if (cookie->abort) break; - cookie->progress = progress++; + cookie->progress = progress; + progress += n.size; } node++; @@ -1843,4 +1844,6 @@ visible: fz_drop_colorspace(ctx, colorspace); fz_drop_stroke_state(ctx, stroke); fz_drop_path(ctx, path); + if (cookie) + cookie->progress = progress; } -- cgit v1.2.3