Fixed problem with Fl_Table::add() as per thread on fltk.general

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
This commit is contained in:
Greg Ercolano 2011-07-23 01:10:26 +00:00
parent 0c0305865a
commit 0fbe0257ab
1 changed files with 6 additions and 1 deletions

View File

@ -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);