summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-05-24 10:03:37 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-05-24 10:03:37 +0200
commita09d43eb404fd864b7b76660774434ea54b720e8 (patch)
tree19a86cb697094a17bfc4d6b706ab8d9eeccd3fb0
parent0a6610c480289a7cb0ecc89ce0c4447180d71069 (diff)
Fix: Fl_Browser unexpected display of empty lines ("@." vs "") (#979)
-rw-r--r--src/Fl_Browser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx
index 09f9c2d1c..46546fb66 100644
--- a/src/Fl_Browser.cxx
+++ b/src/Fl_Browser.cxx
@@ -396,7 +396,7 @@ int Fl_Browser::item_height(void *item) const {
char* ptr = str;
if (ptr && *i++) str = strchr(str, column_char());
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();
if (hh > hmax) hmax = hh;
}