summaryrefslogtreecommitdiff
path: root/examples/table-as-container.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/table-as-container.cxx')
-rw-r--r--examples/table-as-container.cxx1
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);