diff options
| author | Greg Ercolano <erco@seriss.com> | 2012-11-20 18:32:59 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2012-11-20 18:32:59 +0000 |
| commit | 84f374f8055c58a418f42d9acd43646c9e08c2ee (patch) | |
| tree | 5f7207a4c3ed5791540f4b52425c37478fd44025 /examples | |
| parent | c5baa8dac312012a227a514ec57bd29007eb276f (diff) | |
Solves STR#2889, increases reusability of SetSize() in example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/table-as-container.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/table-as-container.cxx b/examples/table-as-container.cxx index 6945d18bf..7f833cfc0 100644 --- a/examples/table-as-container.cxx +++ b/examples/table-as-container.cxx @@ -57,6 +57,7 @@ public: ~WidgetTable() { } void SetSize(int newrows, int newcols) { + clear(); // clear any previous widgets, if any rows(newrows); cols(newcols); |
