[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PCB open pinout window segfault
On Tue, Feb 01, 2005 at 04:37:46PM -0600, Darrell Harmon wrote:
> I am running pcb-20050127. When I select open pinout window PCB
> segfaults (only for certain elements). QFP208_28 in ~geda is one
> example of an element that will cause a segfault. Distro is Debian
> testing. Is anyone else experiencing this?
I found a bug which will do this. I just fixed it in cvs. The change
is attached.
-Dan
--
Index: Pcb.ad.in
===================================================================
RCS file: /cvsroot/pcb/pcb/src/Pcb.ad.in,v
retrieving revision 1.22
diff -u -2 -r1.22 Pcb.ad.in
--- Pcb.ad.in 27 Jan 2005 01:49:32 -0000 1.22
+++ Pcb.ad.in 2 Feb 2005 01:54:07 -0000
@@ -91,6 +91,6 @@
Pcb.pinoutFont4: -*-courier-bold-r-*-*-2-*-*-*-*-*-*-*
Pcb.pinoutNameLength: 8
-Pcb.pinoutOffsetX: 100
-Pcb.pinoutOffsetY: 100
+Pcb.pinoutOffsetX: 10000
+Pcb.pinoutOffsetY: 10000
Pcb.pinoutTextOffsetX: 8
Pcb.pinoutTextOffsetY: 8
Index: rotate.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/rotate.c,v
retrieving revision 1.12
diff -u -2 -r1.12 rotate.c
--- rotate.c 3 Jan 2005 12:57:00 -0000 1.12
+++ rotate.c 2 Feb 2005 01:54:09 -0000
@@ -221,5 +221,5 @@
ELEMENTTEXT_LOOP (Element);
{
- if (Data->name_tree[n])
+ if (Data && Data->name_tree[n])
r_delete_entry (Data->name_tree[n], (BoxType *) text);
RotateTextLowLevel (text, X, Y, Number);