[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: gaf.git: branch: master updated (1.5.1-20081221-109-g7e3eacb)
The branch, master has been updated
via 7e3eacb3fb9f96b1adf707b459f0d62dd2d5d276 (commit)
from 6737adc47d1a2083ac432582b6b64d6aaf1b9632 (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
=========
gschem/src/o_pin.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit 7e3eacb3fb9f96b1adf707b459f0d62dd2d5d276
Author: Ales Hvezda <ahvezda@xxxxxxxx>
Date: Thu Jan 1 21:45:39 2009 -0500
Fixed pin place code to draw pins (thick pins were not being drawn at all)
Trying to draw a pin (white line) with zero width doesn't draw anything.
This commit makes sure that we are always drawing pins with a min width
of 1 if the pin style is set to THICK.
:100644 100644 241a3cc... 9fe86c4... M gschem/src/o_pin.c
=========
Changes
=========
commit 7e3eacb3fb9f96b1adf707b459f0d62dd2d5d276
Author: Ales Hvezda <ahvezda@xxxxxxxx>
Date: Thu Jan 1 21:45:39 2009 -0500
Fixed pin place code to draw pins (thick pins were not being drawn at all)
Trying to draw a pin (white line) with zero width doesn't draw anything.
This commit makes sure that we are always drawing pins with a min width
of 1 if the pin style is set to THICK.
diff --git a/gschem/src/o_pin.c b/gschem/src/o_pin.c
index 241a3cc..9fe86c4 100644
--- a/gschem/src/o_pin.c
+++ b/gschem/src/o_pin.c
@@ -112,8 +112,12 @@ void o_pin_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_cur
color = o_current->color;
}
- if (toplevel->pin_style == THICK )
+ if (toplevel->pin_style == THICK) {
size = SCREENabs(toplevel, PIN_WIDTH);
+ if (size < 1) {
+ size = 1;
+ }
+ }
WORLDtoSCREEN(toplevel, o_current->line->x[0] + dx, o_current->line->y[0] + dy, &sx[0], &sy[0]);
WORLDtoSCREEN(toplevel, o_current->line->x[1] + dx, o_current->line->y[1] + dy, &sx[1], &sy[1]);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs