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

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



The branch, master has been updated
       via  7b590a617db3ca3ed69965b544f1468f82c39dfe (commit)
      from  87572b48e0d58b8f69d4aece6e22c4a5d89a16c5 (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/create.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


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

commit 7b590a617db3ca3ed69965b544f1468f82c39dfe
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    Fix negative-angle handling in create.c
    
    This bug could be seen by taking a component with an
    arc (say, a 3-pin TO transistor, with curved silk),
    flipping it with 'b', and trying to move it. The arc
    would be inverted.

:100644 100644 b57f4a5... c843582... M	src/create.c

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

commit 7b590a617db3ca3ed69965b544f1468f82c39dfe
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    Fix negative-angle handling in create.c
    
    This bug could be seen by taking a component with an
    arc (say, a 3-pin TO transistor, with curved silk),
    flipping it with 'b', and trying to move it. The arc
    would be inverted.

diff --git a/src/create.c b/src/create.c
index b57f4a5..c843582 100644
--- a/src/create.c
+++ b/src/create.c
@@ -721,6 +721,11 @@ CreateNewArcInElement (ElementTypePtr Element,
   Element->ArcN ++;
 
   /* set Delta (0,360], StartAngle in [0,360) */
+  if (delta < 0)
+    {
+      delta = -delta;
+      angle -= delta;
+    }
   angle = NormalizeAngle (angle);
   delta = NormalizeAngle (delta);
   if (delta == 0)




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