From d716e636231c8d636bf2139896d817b66fe6d510 Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Thu, 21 Mar 2019 13:15:37 +0100 Subject: [PATCH 1/2] cairo: Compute correct coverage values for box filter Use double precision for computation of coverage of the left most pixel in the box filter. Issue #736 --- poppler/CairoRescaleBox.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/poppler/CairoRescaleBox.cc b/poppler/CairoRescaleBox.cc index b8371a5b..d7615010 100644 --- a/poppler/CairoRescaleBox.cc +++ b/poppler/CairoRescaleBox.cc @@ -226,10 +227,10 @@ static int compute_coverage (int coverage[], int src_length, int dest_length) /* I have a proof of this, which this margin is too narrow to contain */ for (i=0; i