[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#170384: tetex-bin: epstopdf 'corrects' bounding box too small



Package: tetex-bin
Version: 1.0.7+20021025-3
Severity: minor
Tags: patch

The epstopdf script 'corrects' the bounding box one point too narrow and
too short.  This makes lines that are right at the edge of the bounding
box simply disappear from the pdf.

It's a simple off-by-one error, patch attached.


-- 
Tommi Komulainen                                 tommi.komulainen@iki.fi
GPG 1024D/68388EE6    6FD6 DD79 EB38 BF6F 3533  09C0 04A8 9871 6838 8EE6
--- /usr/bin/epstopdf	2002-11-20 08:18:50.000000000 +0200
+++ epstopdf	2002-11-23 13:54:27.000000000 +0200
@@ -210,7 +210,7 @@
 sub CorrectBoundingBox {
   my ($llx, $lly, $urx, $ury) = @_;
   debug "Old BoundingBox:", $llx, $lly, $urx, $ury;
-  my ($width, $height) = ($urx - $llx, $ury - $lly);
+  my ($width, $height) = ($urx - $llx + 1, $ury - $lly + 1);
   my ($xoffset, $yoffset) = (-$llx, -$lly);
   debug "New BoundingBox: 0 0", $width, $height;
   debug "Offset:", $xoffset, $yoffset;

Attachment: pgpFry6MMcTa4.pgp
Description: PGP signature


Reply to: