Hello Erik,
The Xlib version (both with X11 drawing and cairo) currently segfaults in xtfuncs.c:overdrawpixmap at the first call to XtGetValues. The segfault happens when I change color.
If I start with a line and change to color to say green, there is no problem, since its index> NUMBER_OF_COLORS. But if I select black, the index is 1. And the addtocolorlist has never been called for this index. The proper index I think should have been NUMBER_OF_COLORS (17), since this is the first color entry generated by addtocolorlist with a proper cbutton pointer.
I tried to trace it but you probably know better what is happening and why.
Black and white are supposed to be allocated automatically; this is done with "addnewcolorentry", but I see that that routine is defined in the Tcl/Tk version only. I will track this problem down and fix it. ---Tim +--------------------------------+-------------------------------------+ | R. Timothy Edwards (Tim) | email: t...@opencircuitdesign.com | | Open Circuit Design | web: http://opencircuitdesign.com | | 22815 Timber Creek Lane | phone: (301) 528-5030 | | Clarksburg, MD 20871-4001 | cell: (240) 401-0616 | +--------------------------------+-------------------------------------+ _______________________________________________ Xcircuit-dev mailing list Xcircuit-dev@opencircuitdesign.com http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev