Skip to content

Commit

Permalink
Fixed problem with Fl_Table::add() as per thread on fltk.general
Browse files Browse the repository at this point in the history
entitled "Fl_Table::add() doesn't work properly?"



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
erco77 committed Jul 23, 2011
1 parent 0c03058 commit 0fbe025
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FL/Fl_Table.H
Expand Up @@ -854,9 +854,14 @@ public:
}
void add(Fl_Widget& w) {
table->add(w);
if ( table->children() > 2 ) {
table->show();
} else {
table->hide();
}
}
void add(Fl_Widget* w) {
table->add(w);
add(*w);
}
void insert(Fl_Widget& w, int n) {
table->insert(w,n);
Expand Down

0 comments on commit 0fbe025

Please sign in to comment.