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

gEDA-cvs: pcb.git: branch: master updated (bc21ef592fc14e7ca9d483892473a522ff645368)



The branch, master has been updated
       via  bc21ef592fc14e7ca9d483892473a522ff645368 (commit)
      from  c12cc6f769b5ccc603a75361fae3adc930934506 (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
=========

 src/draw.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


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

commit bc21ef592fc14e7ca9d483892473a522ff645368
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Fix Mark size math wrt unplated holes.
    
    When computing the Mark size, check for the first pin being a hole
    and use the drill size rather than the copper size.

:100644 100644 6c3d709... da848a7... M	src/draw.c

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

commit bc21ef592fc14e7ca9d483892473a522ff645368
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Fix Mark size math wrt unplated holes.
    
    When computing the Mark size, check for the first pin being a hole
    and use the drill size rather than the copper size.

diff --git a/src/draw.c b/src/draw.c
index 6c3d709..da848a7 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -819,7 +819,10 @@ DrawEMark (ElementTypePtr e, LocationType X, LocationType Y,
   if (e->Pin != NULL)
     {
       PinType *pin0 = e->Pin->data;
-      mark_size = MIN (mark_size, pin0->Thickness / 2);
+      if (TEST_FLAG (HOLEFLAG, pin0))
+	mark_size = MIN (mark_size, pin0->DrillingHole / 2);
+      else
+	mark_size = MIN (mark_size, pin0->Thickness / 2);
     }
 
   if (e->Pad != NULL)




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