|
|
commit e97fd17e04cf400f30e059f532975de1092a9466
Author: Greg Ercolano <erco@seriss.com>
AuthorDate: Wed Nov 24 14:57:44 2021 -0800
Commit: Greg Ercolano <erco@seriss.com>
CommitDate: Wed Nov 24 14:57:44 2021 -0800
Solves Fl_Table_Row warning in issue #296
src/Fl_Table_Row.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git src/Fl_Table_Row.cxx src/Fl_Table_Row.cxx
index 29d7774..3a091ff 100644
--- src/Fl_Table_Row.cxx
+++ src/Fl_Table_Row.cxx
@@ -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;
[ Direct Link to Message ] | |
|
| |