summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Browser_.cxx3
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 8420bc206..05ca3e9c5 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745)
+ - Fixed the drawing of the Fl_Browser_ selection box (STR
+ #786)
- Dropped Codewarrier project files and support.
- The FLTK string functions are now compiled in on all
systems (STR #774)
diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx
index 68693f994..9835fba1f 100644
--- a/src/Fl_Browser_.cxx
+++ b/src/Fl_Browser_.cxx
@@ -362,7 +362,8 @@ J1:
}
item_draw(l, X-hposition_, yy+Y, W+hposition_, hh);
if (l == selection_ && Fl::focus() == this) {
- draw_focus(FL_NO_BOX, X, yy+Y+1, W, hh);
+ draw_box(FL_BORDER_FRAME, X, yy+Y, W, hh, color());
+ draw_focus(FL_NO_BOX, X, yy+Y, W, hh+1);
}
int ww = item_width(l);
if (ww > max_width) {max_width = ww; max_width_item = l;}