From 2409e0ea33c1eae2124623a2b9ee001a07dc767a Mon Sep 17 00:00:00 2001 From: malc Date: Sun, 31 May 2020 04:32:49 +0300 Subject: [PATCH] Make sure that progress always hits 100% Otherwise there can be (and are) nasty artifacts on the status line. --- link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/link.c b/link.c index dd46e89..72568f1 100644 --- a/link.c +++ b/link.c @@ -734,7 +734,8 @@ static void initpdims (void) } fz_drop_page (ctx, &page->super); - show = trim ? pageno % 5 == 0 : pageno % 20 == 0; + show = (pageno + 1 == state.pagecount) + || (trim ? pageno % 5 == 0 : pageno % 20 == 0); if (show) { printd ("progress %f Trimming %d", (double) (pageno + 1) / state.pagecount, -- 2.11.4.GIT