Solves Fl_Table_Row warning in issue #296
This commit is contained in:
parent
ef1c2d5b26
commit
e97fd17e04
@ -51,6 +51,7 @@ Fl_Table_Row::CharVector::~CharVector() { // DTOR
|
||||
}
|
||||
|
||||
void Fl_Table_Row::CharVector::size(int count) {
|
||||
if (count <= 0 ) count = 1; // (issue #296)
|
||||
if (count != _size) {
|
||||
arr = (char*)realloc(arr, (unsigned)count * sizeof(char));
|
||||
_size = count;
|
||||
|
Loading…
Reference in New Issue
Block a user