summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-11-18 17:55:47 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-11-18 17:55:47 +0000
commit16db9a0c8279a927306513161038b3d4f8925eac (patch)
tree56db04b27d995dd478532466f6aa8ff9ae5be221
parent853a716610ae1f393e05aceb27b38b9007c39701 (diff)
Fix crash when closing fluid with Fl_Table (STR #3427).
Many thanks to Chris for the patch! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--fluid/Fl_Group_Type.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/fluid/Fl_Group_Type.cxx b/fluid/Fl_Group_Type.cxx
index 555ffe186..a21ff6849 100644
--- a/fluid/Fl_Group_Type.cxx
+++ b/fluid/Fl_Group_Type.cxx
@@ -196,6 +196,7 @@ class Fluid_Table : public Fl_Table {
public:
Fluid_Table(int x, int y, int w, int h, const char *l=0L)
: Fl_Table(x, y, w, h, l) {
+ end();
for ( int r=0; r<MAX_ROWS; r++ )
for ( int c=0; c<MAX_COLS; c++ )
data[r][c] = 1000+(r*1000)+c;
@@ -203,7 +204,8 @@ public:
rows(MAX_ROWS); // how many rows
row_header(1); // enable row headers (along left)
row_height_all(20); // default height of rows
- row_resize(0); // disable row resizing // Cols
+ row_resize(0); // disable row resizing
+ // Cols
cols(MAX_COLS); // how many columns
col_header(1); // enable column headers (along top)
col_width_all(80); // default width of columns