Author: greg.ercolano
Date: 2011-07-22 18:10:26 -0700 (Fri, 22 Jul 2011)
New Revision: 8868
Log:
Fixed problem with Fl_Table::add() as per thread on fltk.general
entitled "Fl_Table::add() doesn't work properly?"
Modified:
branches/branch-1.3/FL/Fl_Table.H
Modified: branches/branch-1.3/FL/Fl_Table.H
===================================================================
--- branches/branch-1.3/FL/Fl_Table.H 2011-07-20 16:06:02 UTC (rev 8867)
+++ branches/branch-1.3/FL/Fl_Table.H 2011-07-23 01:10:26 UTC (rev 8868)
@@ -854,9 +854,14 @@
}
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);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit