FLTK logo

[master] e97fd17 - Solves Fl_Table_Row warning in issue #296

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] e97fd17 - Solves Fl_Table_Row warning in issue #296 "Greg Ercolano" Nov 24, 2021  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.