Author: greg.ercolano
Date: 2012-11-20 10:32:59 -0800 (Tue, 20 Nov 2012)
New Revision: 9728
Log:
Solves STR#2889, increases reusability of SetSize() in example.


Modified:
   branches/branch-1.3/examples/table-as-container.cxx

Modified: branches/branch-1.3/examples/table-as-container.cxx
===================================================================
--- branches/branch-1.3/examples/table-as-container.cxx 2012-11-20 12:29:46 UTC 
(rev 9727)
+++ branches/branch-1.3/examples/table-as-container.cxx 2012-11-20 18:32:59 UTC 
(rev 9728)
@@ -57,6 +57,7 @@
   ~WidgetTable() { }
 
   void SetSize(int newrows, int newcols) {
+    clear();           // clear any previous widgets, if any
     rows(newrows);
     cols(newcols);
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to