summaryrefslogtreecommitdiff
path: root/FL/Fl_Table_Row.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_Table_Row.H')
-rw-r--r--FL/Fl_Table_Row.H12
1 files changed, 9 insertions, 3 deletions
diff --git a/FL/Fl_Table_Row.H b/FL/Fl_Table_Row.H
index 87c0eed15..ec5cd4512 100644
--- a/FL/Fl_Table_Row.H
+++ b/FL/Fl_Table_Row.H
@@ -24,7 +24,6 @@
#include <FL/Fl_Table.H>
#include <stdint.h>
-#include <vector>
/**
A table with row selection capabilities.
@@ -52,7 +51,9 @@ public:
};
private:
- std::vector<uint8_t> _rowselect; // selection flag for each row
+ unsigned char *_rowselect; // selection flag for each row
+ int _rowselect_size; // size of _rowselect array
+ int _rowselect_alloc; // allocated size
// handle() state variables.
// Put here instead of local statics in handle(), so more
@@ -80,6 +81,9 @@ public:
with headers and row/column resize behavior disabled.
*/
Fl_Table_Row(int X, int Y, int W, int H, const char *l=0) : Fl_Table(X,Y,W,H,l) {
+ _rowselect = 0;
+ _rowselect_size = 0;
+ _rowselect_alloc = 0;
_dragging_select = 0;
_last_row = -1;
_last_y = -1;
@@ -92,7 +96,9 @@ public:
The destructor for the Fl_Table_Row.
Destroys the table and its associated widgets.
*/
- ~Fl_Table_Row() { }
+ ~Fl_Table_Row() {
+ if (_rowselect) free(_rowselect);
+ }
void rows(int val); // set number of rows
int rows() { // get number of rows