shithub: neatpost

Download patch

ref: df40ca99772b4eedcdb91ea1637ac92834c33542
parent: 55f1f28527bb748c6a448d94b29f9edf4e69f175
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed Jan 28 18:01:20 EST 2015

out: eps bounding box is in points

Reported by Carsten Kunze <carsten.kunze@arcor.de>.

--- a/out.c
+++ b/out.c
@@ -280,7 +280,7 @@
 	if (nbb < 4)		/* no BoundingBox comment */
 		return;
 	if (hwid <= 0 && vwid <= 0)
-		hwid = urx - llx;
+		hwid = (urx - llx) * dev_res / 72;
 	if (vwid <= 0)
 		vwid = (ury - lly) * hwid / (urx - llx);
 	if (hwid <= 0)