mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 22:36:19 +08:00
Fix crash when closing fluid with Fl_Table (STR #3427).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -3,6 +3,7 @@ CHANGES IN FLTK 1.3.5 RELEASED: ??? ?? 2017
|
||||
|
||||
Bug fixes and other improvements
|
||||
|
||||
- Fix crash when closing fluid with Fl_Table (STR #3427).
|
||||
- Fix ignored buffer pre-allocation (requestedSize) in Fl_Text_Buffer.
|
||||
See fltk.general "Fl_Text_Buffer constructor bug" on Dec 5, 2016.
|
||||
- Fix Fl_Browser background and text color parsing (STR #3376).
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user