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

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



The branch, master has been updated
       via  2744a86d9d5dd34ab256b991c21ddd022e886dd0 (commit)
      from  7e918135ef6aba78aa051888f24c799b2d6cb4f2 (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/hid/common/draw_helpers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


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

commit 2744a86d9d5dd34ab256b991c21ddd022e886dd0
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/common: Fix common_thindraw_pcb_pad()'s handling of square pads
    
    I made a mistake in a logic test when simplifying this routine in
    commit 4efcedeeac06cd4d5e559a7fe0a0ee8685f2137a
    
    This caused slanted rendering of horizontal or vertical pads.

:100644 100644 b043d92... 7d529ba... M	src/hid/common/draw_helpers.c

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

commit 2744a86d9d5dd34ab256b991c21ddd022e886dd0
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/common: Fix common_thindraw_pcb_pad()'s handling of square pads
    
    I made a mistake in a logic test when simplifying this routine in
    commit 4efcedeeac06cd4d5e559a7fe0a0ee8685f2137a
    
    This caused slanted rendering of horizontal or vertical pads.

diff --git a/src/hid/common/draw_helpers.c b/src/hid/common/draw_helpers.c
index b043d92..7d529ba 100644
--- a/src/hid/common/draw_helpers.c
+++ b/src/hid/common/draw_helpers.c
@@ -225,7 +225,7 @@ common_thindraw_pcb_pad (hidGC gc, PadType *pad, bool clear, bool mask)
       /* slanted square pad */
       float tx, ty, theta;
 
-      if (x1 == x2 || y1 == y2)
+      if (x1 == x2 && y1 == y2)
         theta = 0;
       else
         theta = atan2 (y2 - y1, x2 - x1);




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