DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2581 Version: 1.3-current If I call fl_draw() without setting a font, I get a crash because of a NULL reference. It seems the code was meant to protect against this (given the comments), but it is not working. To be honest, I'm not sure how this ever worked. The routines set the local pointer fl_fontsize. A macro is then called to see if this is NULL, and call fl_font() if it is. But nowhere is fl_fontsize assigned a new proper value after that call to fl_font(). I fixed this by redoing the macro at the top: #define check_default_font() {if (!fl_fontsize) { fl_font(FL_HELVETICA, FL_NORMAL_SIZE); fl_fontsize = fl_graphics_driver->font_descriptor(); } } Link: http://www.fltk.org/str.php?L2581 Version: 1.3-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
