summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_Table.H7
1 files changed, 6 insertions, 1 deletions
diff --git a/FL/Fl_Table.H b/FL/Fl_Table.H
index 4497aab21..73a772637 100644
--- a/FL/Fl_Table.H
+++ b/FL/Fl_Table.H
@@ -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);