diff options
-rw-r--r-- | print/xpdf/distinfo | 3 | ||||
-rw-r--r-- | print/xpdf/patches/patch-ac | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/print/xpdf/distinfo b/print/xpdf/distinfo index 1f5b831fdb0..be394108638 100644 --- a/print/xpdf/distinfo +++ b/print/xpdf/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.4 2002/03/23 14:08:12 simonb Exp $ +$NetBSD: distinfo,v 1.5 2002/03/23 16:32:32 simonb Exp $ SHA1 (xpdf-1.00.tar.gz) = 01aae7c29a916b809bc5fc29f279b97cf4b56169 Size (xpdf-1.00.tar.gz) = 397750 bytes SHA1 (patch-aa) = 2b1a36ce71afb4c7ad2a84ac70f46fe5ffea3687 SHA1 (patch-ab) = e8579824f1eb5517945dadf15ddf17142a075fc7 +SHA1 (patch-ac) = 529f42dda29f03d742fd92b5bdedc4c1cd93d9dc diff --git a/print/xpdf/patches/patch-ac b/print/xpdf/patches/patch-ac new file mode 100644 index 00000000000..ab275f8c5cd --- /dev/null +++ b/print/xpdf/patches/patch-ac @@ -0,0 +1,19 @@ +$NetBSD: patch-ac,v 1.1 2002/03/23 16:32:33 simonb Exp $ + +--- xpdf/XOutputDev.cc.orig Sat Feb 2 10:15:45 2002 ++++ xpdf/XOutputDev.cc +@@ -399,8 +399,12 @@ + for (i = 0; i < uLen; ++i) { + n += xUMap->mapUnicode(u[i], buf, sizeof(buf)); + } +- dx1 = dx / n; +- dy1 = dy / n; ++ if (n == 0) { ++ dx1 = dy1 = 0.; ++ } else { ++ dx1 = dx / n; ++ dy1 = dy / n; ++ } + k = 0; + for (i = 0; i < uLen; ++i) { + m = xUMap->mapUnicode(u[i], buf, sizeof(buf)); |