DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2683
Version: 1.3-current


This is because the text buffer hasn't been assigned to the display yet
when show_cursor() is being called.

If you move the call to show_cursor() after disp->buffer(tbuff),
it will work normally, eg:

   Fl_Text_Buffer *tbuff = new Fl_Text_Buffer(); // text buffer
   Fl_Text_Buffer *sbuff = new Fl_Text_Buffer(); // style buffer
   disp->buffer(tbuff);
   disp->show_cursor(true);   // MOVE HERE

To prevent this from crashing FLTK, tests could be added to
check to see if buffer() is set, and if not, call the fatal error
handler. But to work properly, the show_cursor() call still needs to be
moved.


Link: http://www.fltk.org/str.php?L2683
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to