From 84f374f8055c58a418f42d9acd43646c9e08c2ee Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 20 Nov 2012 18:32:59 +0000 Subject: [PATCH] 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 --- examples/table-as-container.cxx | 1 + 1 file changed, 1 insertion(+) 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);