[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: tragesym patch



Hi Matt,

On Dienstag, 27. Januar 2009, Matt Ettus wrote:
> If you put pins on either the top or bottom of a symbol, tragesym
> moves the name around and changes the positioning.  However, this is
> only necessary if pins are on top, and the logic should ignore pins
> on the bottom.  The following patch:
>
> $ diff /usr/bin/tragesym tragesym
> 300c300
> <     if numpbottom > 0:
> ---
>
> >     if numptop > 0:
>
> 310c310
> <     if (numptop + numpbottom > 0):
> ---
>
> >     if (numptop > 0):
>
> 494c494
> <     if numptop + numpbottom > 0:
> ---
>
> >     if numptop > 0:
>
> Results in much better symbols when you pins on the bottom and not
> the top.

Thanks for the patch, in the current version in the git repo it was only 
one change:
---------
@@ -490,4 +490,4 @@ def writesym(filename,options,attr,pins):
 
-    # Center name if we have top/bottom pins
-    if numptop + numpbottom > 0:
+    # Center name if we have top pins
+    if numptop > 0:
 	namex, namey = (bottomleftx + o_symwidth) / 2, (bottomlefty + high) / 
2 + 100

-------

Regards
Werner


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user