[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (93dbc950600032062d26ffa73c99c5f634a0478c)
The branch, master has been updated
via 93dbc950600032062d26ffa73c99c5f634a0478c (commit)
from bcd7d69b63ea85a6b83e28e66fb87aebe2d26901 (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/draw.c | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
=================
Commit Messages
=================
commit 93dbc950600032062d26ffa73c99c5f634a0478c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
draw.c: Tidy up hole_callback routine
:100644 100644 8b9b86a... d6dce62... M src/draw.c
=========
Changes
=========
commit 93dbc950600032062d26ffa73c99c5f634a0478c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
draw.c: Tidy up hole_callback routine
diff --git a/src/draw.c b/src/draw.c
index 8b9b86a..d6dce62 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -298,19 +298,11 @@ hole_callback (const BoxType * b, void *cl)
{
PinTypePtr pin = (PinTypePtr) b;
int plated = cl ? *(int *) cl : -1;
- switch (plated)
- {
- case -1:
- break;
- case 0:
- if (!TEST_FLAG (HOLEFLAG, pin))
- return 1;
- break;
- case 1:
- if (TEST_FLAG (HOLEFLAG, pin))
- return 1;
- break;
- }
+
+ if ((plated == 0 && !TEST_FLAG (HOLEFLAG, pin)) ||
+ (plated == 1 && TEST_FLAG (HOLEFLAG, pin)))
+ return 1;
+
DrawHole ((PinTypePtr) b);
return 1;
}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs