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

[STR New]

Link: http://www.fltk.org/str.php?L2835
Version: 1.3-feature


Programming intuitively I tried to disable a Widget callback
temporarilly (during some update to a property that normally
triggered a callback) by using

  mywidget->callback( (Fl_Callback *)0 );

That crashes in Fl_Widget::do_callback(), because there is no
check for callback_ != NULL.

Guess, I should have used Fl_Widget::default_callback
for that purpose, but it's so intuitive - and so easy to fix.

Attached a one line patch for your consideration.


Link: http://www.fltk.org/str.php?L2835
Version: 1.3-feature

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to