From 7102b0a38ab8c1da23d3e679d8a60b36c4cfccc9 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 10 Apr 2005 22:44:48 +0000 Subject: [PATCH] Fixed the drawing of the Fl_Browser_ selection box (STR #786) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 ++ src/Fl_Browser_.cxx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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;}