[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (71898679b6f0b0ba7a416d1d43d6c729d0f5339b)
The branch, master has been updated
via 71898679b6f0b0ba7a416d1d43d6c729d0f5339b (commit)
from 4570d66a094c717cd8986ebc56d7e2c1e25cfb73 (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/change.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
=================
Commit Messages
=================
commit 71898679b6f0b0ba7a416d1d43d6c729d0f5339b
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
change.c: Restore and clear to polygons when changing hole sizes
This is more consistent with other code-paths and is useful if the
thermal gemoetry were to depend in on the hole size (which it doesn't
currently, but used to do before the clipper branch).
:100644 100644 cb53b47... 95128d0... M src/change.c
=========
Changes
=========
commit 71898679b6f0b0ba7a416d1d43d6c729d0f5339b
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
change.c: Restore and clear to polygons when changing hole sizes
This is more consistent with other code-paths and is useful if the
thermal gemoetry were to depend in on the hole size (which it doesn't
currently, but used to do before the clipper branch).
diff --git a/src/change.c b/src/change.c
index cb53b47..95128d0 100644
--- a/src/change.c
+++ b/src/change.c
@@ -440,21 +440,20 @@ ChangeVia2ndSize (PinTypePtr Via)
{
AddObjectTo2ndSizeUndoList (VIA_TYPE, Via, Via, Via);
EraseVia (Via);
+ RestoreToPolygon (PCB->Data, VIA_TYPE, Via, Via);
Via->DrillingHole = value;
if (TEST_FLAG (HOLEFLAG, Via))
{
- RestoreToPolygon (PCB->Data, VIA_TYPE, Via, Via);
AddObjectToSizeUndoList (VIA_TYPE, Via, Via, Via);
Via->Thickness = value;
- ClearFromPolygon (PCB->Data, VIA_TYPE, Via, Via);
}
+ ClearFromPolygon (PCB->Data, VIA_TYPE, Via, Via);
DrawVia (Via, 0);
return (Via);
}
return (NULL);
}
-
/* ---------------------------------------------------------------------------
* changes the clearance size of a via
* returns TRUE if changed
@@ -629,15 +628,15 @@ ChangeElement2ndSize (ElementTypePtr Element)
changed = true;
AddObjectTo2ndSizeUndoList (PIN_TYPE, Element, pin, pin);
ErasePin (pin);
+ RestoreToPolygon (PCB->Data, PIN_TYPE, Element, pin);
pin->DrillingHole = value;
- DrawPin (pin, 0);
if (TEST_FLAG (HOLEFLAG, pin))
{
- RestoreToPolygon (PCB->Data, PIN_TYPE, Element, pin);
AddObjectToSizeUndoList (PIN_TYPE, Element, pin, pin);
pin->Thickness = value;
- ClearFromPolygon (PCB->Data, PIN_TYPE, Element, pin);
}
+ ClearFromPolygon (PCB->Data, PIN_TYPE, Element, pin);
+ DrawPin (pin, 0);
}
}
END_LOOP;
@@ -666,15 +665,15 @@ ChangePin2ndSize (ElementTypePtr Element, PinTypePtr Pin)
{
AddObjectTo2ndSizeUndoList (PIN_TYPE, Element, Pin, Pin);
ErasePin (Pin);
+ RestoreToPolygon (PCB->Data, PIN_TYPE, Element, Pin);
Pin->DrillingHole = value;
- DrawPin (Pin, 0);
if (TEST_FLAG (HOLEFLAG, Pin))
{
- RestoreToPolygon (PCB->Data, PIN_TYPE, Element, Pin);
AddObjectToSizeUndoList (PIN_TYPE, Element, Pin, Pin);
Pin->Thickness = value;
- ClearFromPolygon (PCB->Data, PIN_TYPE, Element, Pin);
}
+ ClearFromPolygon (PCB->Data, PIN_TYPE, Element, Pin);
+ DrawPin (Pin, 0);
return (Pin);
}
return (NULL);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs