[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (f60343f00fa3bccb0c212409e64dbaef96801d53)
The branch, master has been updated
via f60343f00fa3bccb0c212409e64dbaef96801d53 (commit)
from 0374e23c9a4c6d6039c2ade3fa97fb9bff9bed21 (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/insert.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
=================
Commit Messages
=================
commit f60343f00fa3bccb0c212409e64dbaef96801d53
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
Fix computation of 45-degree edges when inserting a point into an edge
Fixes a few mistakes introduced in commit b59ab044afe3ac362f8cb4da10ea410280b4323a
which was bisected to and identified as the cuplrit by Gabriel Paubert.
Reported-by: Gabriel Paubert <paubert@xxxxxxx>
:100644 100644 514754f... 42661ec... M src/insert.c
=========
Changes
=========
commit f60343f00fa3bccb0c212409e64dbaef96801d53
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
Fix computation of 45-degree edges when inserting a point into an edge
Fixes a few mistakes introduced in commit b59ab044afe3ac362f8cb4da10ea410280b4323a
which was bisected to and identified as the cuplrit by Gabriel Paubert.
Reported-by: Gabriel Paubert <paubert@xxxxxxx>
diff --git a/src/insert.c b/src/insert.c
index 514754f..42661ec 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -275,7 +275,7 @@ AdjustInsertPoint (void)
m1 = 2; /* 2 signals infinite slope */
else
{
- m = (double) (Crosshair.X - line->Point1.X) / (Crosshair.Y - line->Point1.Y);
+ m = (double) (Crosshair.Y - line->Point1.Y) / (Crosshair.X - line->Point1.X);
m1 = 0;
if (m > TAN_30_DEGREE)
m1 = (m > TAN_60_DEGREE) ? 2 : 1;
@@ -286,7 +286,7 @@ AdjustInsertPoint (void)
m2 = 2; /* 2 signals infinite slope */
else
{
- m = (double) (Crosshair.X - line->Point1.X) / (Crosshair.Y - line->Point1.Y);
+ m = (double) (Crosshair.Y - line->Point2.Y) / (Crosshair.X - line->Point2.X);
m2 = 0;
if (m > TAN_30_DEGREE)
m2 = (m > TAN_60_DEGREE) ? 2 : 1;
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs