r5620 - trunk/eda/fped

werner at docs.openmoko.org werner at docs.openmoko.org
Tue Sep 8 21:37:48 CEST 2009


Author: werner
Date: 2009-09-08 21:37:47 +0200 (Tue, 08 Sep 2009)
New Revision: 5620

Modified:
   trunk/eda/fped/postscript.c
Log:
- postscript.c: don't try to print empty pad names, or we'll have a hard time
  scaling that zero-sized box to fill the available space



Modified: trunk/eda/fped/postscript.c
===================================================================
--- trunk/eda/fped/postscript.c	2009-09-08 19:35:59 UTC (rev 5619)
+++ trunk/eda/fped/postscript.c	2009-09-08 19:37:47 UTC (rev 5620)
@@ -169,6 +169,8 @@
 	struct coord b = inst->u.pad.other;
 	unit_type h, w;
 
+	if (!*inst->u.pad.name)
+		return;
 	h = a.y-b.y;
 	w = a.x-b.x;
 	if (h < 0)




More information about the commitlog mailing list