1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/graphics/xpdf/files/patch-ab

12 lines
451 B
Plaintext
Raw Normal View History

1998-07-02 11:01:01 +00:00
--- xpdf/XOutputDev.cc.orig Wed Jul 1 22:54:59 1998
+++ xpdf/XOutputDev.cc Wed Jul 1 22:56:09 1998
@@ -275,7 +275,7 @@
// rendering the font. This code tries to guess by looking at the
// width of the character 'm' (which breaks if the font is a
// subset that doesn't contain 'm').
- if (w1 > 1.1 * w2 || w1 < 0.9 * w2) {
+ if (w1 > 0 && (w1 > 1.1 * w2 || w1 < 0.9 * w2)) {
w1 /= w2;
mat11 *= w1;
mat12 *= w1;