diff options
| author | Greg Ercolano <erco@seriss.com> | 2011-07-23 01:10:26 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2011-07-23 01:10:26 +0000 |
| commit | 0fbe0257ab9d218a3d9c2bfdf896ae54ef3114f7 (patch) | |
| tree | 35c2aca25d4bab5e6212e1ab9a43946892e19fc7 /FL/Fl_Table.H | |
| parent | 0c0305865a374d07431645912deb8893c014bd8d (diff) | |
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
Diffstat (limited to 'FL/Fl_Table.H')
| -rw-r--r-- | FL/Fl_Table.H | 7 |
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); |
