I've fixed the crash. There was another area in addition to this one where checks for NULL string points were necessary. Also, for debugging purposes I've added some #if'd g_message()'s to the various marker areas in style.c so you can turn DEBUG_MARKERS on in style.c to help track down where problems occur.
I've test compiled it under both g++ and gcc. Jon had found an issue when compiling with gcc with how vars were declared; this is fixed.
Bryce
On Sat, 6 Dec 2003, bulia byak wrote:
Latest cvs crashes when doing convert to curves, I localized this crash to:
/* markers */ p += g_snprintf (p, c + BMAX - p, "marker:%s", from->marker[SP_MARKER_LOC]); p += g_snprintf (p, c + BMAX - p, "marker-start:%s", from->marker[SP_MARKER_LOC_START]); p += g_snprintf (p, c + BMAX - p, "marker-mid:%s", from->marker[SP_MARKER_LOC_MID]); p += g_snprintf (p, c + BMAX - p, "marker-end:%s", from->marker[SP_MARKER_LOC_END]);
in style.c. Bryce, I guess this is your recent code, so perhaps you can guess how to fix this.
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%...
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel