[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (6c1b85b47f75dc849da9715bce8c76bfb15c3791)
The branch, master has been updated
via 6c1b85b47f75dc849da9715bce8c76bfb15c3791 (commit)
from d2ae471045ac81b6e97d5b441860081bc95eb2e7 (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 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit 6c1b85b47f75dc849da9715bce8c76bfb15c3791
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Fix polygon clears on insert.
Add the calls to update polygon clearances when a point is inserted into
a line.
:100644 100644 efce2f0... 9313807... M src/insert.c
=========
Changes
=========
commit 6c1b85b47f75dc849da9715bce8c76bfb15c3791
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Fix polygon clears on insert.
Add the calls to update polygon clearances when a point is inserted into
a line.
diff --git a/src/insert.c b/src/insert.c
index efce2f0..9313807 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -138,10 +138,12 @@ InsertPointIntoLine (LayerTypePtr Layer, LineTypePtr Line)
InsertX - X, InsertY - Y);
EraseLine (Line);
r_delete_entry (Layer->line_tree, (BoxTypePtr) Line);
+ RestoreToPolygon (PCB->Data, LINE_TYPE, Layer, Line);
Line->Point2.X = InsertX;
Line->Point2.Y = InsertY;
SetLineBoundingBox (Line);
r_insert_entry (Layer->line_tree, (BoxTypePtr) Line, 0);
+ ClearFromPolygon (PCB->Data, LINE_TYPE, Layer, Line);
DrawLine (Layer, Line);
/* we must create after playing with Line since creation may
* invalidate the line pointer
@@ -153,6 +155,7 @@ InsertPointIntoLine (LayerTypePtr Layer, LineTypePtr Line)
{
AddObjectToCreateUndoList (LINE_TYPE, Layer, line, line);
DrawLine (Layer, line);
+ ClearFromPolygon (PCB->Data, LINE_TYPE, Layer, line);
/* creation call adds it to the rtree */
}
Draw ();
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs