Browse Source

STR #3498: Fl_Check_Browser::add(item) now accepts NULL.

As promised in the docs.
pull/26/head
Matthias Melcher 6 years ago
parent
commit
4deeea317a
  1. 2
      src/Fl_Check_Browser.cxx

2
src/Fl_Check_Browser.cxx

@ -175,7 +175,7 @@ int Fl_Check_Browser::add(char *s, int b) {
p->prev = 0; p->prev = 0;
p->checked = b; p->checked = b;
p->selected = 0; p->selected = 0;
p->text = strdup(s); p->text = strdup(s?s:"");
if (b) { if (b) {
nchecked_++; nchecked_++;

Loading…
Cancel
Save