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

gEDA-cvs: gaf.git: branch: master updated (1.5.1-20081221-208-g3269589)



The branch, master has been updated
       via  326958985a98cb638efe4d0579c0f9d2d89e140e (commit)
      from  904ce8cf81d555debc439ed122322663e74988bf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 utils/scripts/tragesym |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


=================
 Commit Messages
=================

commit 326958985a98cb638efe4d0579c0f9d2d89e140e
Author: Werner Hoch <werner.ho@xxxxxx>
Date:   Tue Jan 27 21:02:24 2009 +0100

    tragesym: put attributes on top if there are no top pins
    
    If you put pins on either the top or bottom of a symbol, tragesym
    moved 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.
    
    Fix suggested on gEDA mailing list by Matt Ettus <boyscout@xxxxxxxxx>

:100755 100755 267a057... 823d208... M	utils/scripts/tragesym

=========
 Changes
=========

commit 326958985a98cb638efe4d0579c0f9d2d89e140e
Author: Werner Hoch <werner.ho@xxxxxx>
Date:   Tue Jan 27 21:02:24 2009 +0100

    tragesym: put attributes on top if there are no top pins
    
    If you put pins on either the top or bottom of a symbol, tragesym
    moved 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.
    
    Fix suggested on gEDA mailing list by Matt Ettus <boyscout@xxxxxxxxx>

diff --git a/utils/scripts/tragesym b/utils/scripts/tragesym
index 267a057..823d208 100755
--- a/utils/scripts/tragesym
+++ b/utils/scripts/tragesym
@@ -297,7 +297,7 @@ def writesym(filename,options,attr,pins):
         plefty = prighty
 
     # Calculate the bottom left of the box
-    bottomleftx, bottomlefty = pinlength + 100, 100  ## bottom left of the box
+    bottomleftx, bottomlefty = pinlength + 100, 100
     if numpbottom > 0:
 	bottomlefty += pinlength
 
@@ -309,7 +309,7 @@ def writesym(filename,options,attr,pins):
                               calculated_top_symwidth)
 
     if (numptop + numpbottom > 0):
-	print "note: use sym_width to adjust symbol width if texts overlap."
+	print "Note: use sym_width to adjust symbol width if texts overlap."
 
     if o_symwidth == 0:
 	o_symwidth = calculated_symwidth
@@ -488,8 +488,8 @@ def writesym(filename,options,attr,pins):
 ### draw the attributes
     urefx, urefy = bottomleftx+o_symwidth, bottomlefty + high + 100
 
-    # 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
     else:
 	namex, namey = bottomleftx, bottomlefty+high+100




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