From: <el...@ji...> - 2006-04-10 18:26:48
|
Maeda Yasuyuki wrote: >I've got a point! >As was expected, the segfaults seems to be of a font problem. > >I found where the segfaults occurred: line 116 in Rotated.cpp >116: XSetFont(dpy, font_gc, fontstruct->fid); > >'fontstruct' was null when segfaults occurred. I couldn't follow how it should be set. > >Would you give me a suggestion to resolve the problem? > >Maeda > > Now that's great. I thought this particular bug shouldn't appear with fltk 1.1.4=<, but I happen to have two alternative fixes. As you seem to know c better than I do, you could look into them and propose a final fix. The fixes are in comments in Rotated.cpp (use the one attached), and you should first look around line 450. There's also something around 180, but that wouldn't work out of the box, since the fix happens after line 116 (they are at the same level). Hope this works, I should've thought about this sooner. Elmo |