Fix: Fl_Browser unexpected display of empty lines ("@." vs "") (#979)

This commit is contained in:
ManoloFLTK 2024-05-24 10:03:37 +02:00
parent 0a6610c480
commit a09d43eb40

View File

@ -396,7 +396,7 @@ int Fl_Browser::item_height(void *item) const {
char* ptr = str; char* ptr = str;
if (ptr && *i++) str = strchr(str, column_char()); if (ptr && *i++) str = strchr(str, column_char());
else str = NULL; else str = NULL;
if((!str && *ptr) || (str && ptr < str)) { if((!str && *ptr) || (str && ptr < str) || hmax == 2) {
fl_font(font, tsize); int hh = fl_height(); fl_font(font, tsize); int hh = fl_height();
if (hh > hmax) hmax = hh; if (hh > hmax) hmax = hh;
} }