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:
parent
0c0305865a
commit
0fbe0257ab
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user