Fix Fl_Browser background and text color parsing (STR #3376).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2017-06-04 14:39:05 +00:00
parent 822f14c77a
commit 9ee09b1f90
2 changed files with 4 additions and 3 deletions

View File

@ -75,6 +75,7 @@ Changes in FLTK 1.4.0 Released: ??? ?? 2017
Bug Fixes
- (add new items here)
- Fix Fl_Browser background and text color parsing (STR #3376).
- Fix STR #3374, a regression introduced when adding pango support.
- Fix Windows CreateDC/DeleteDC mismatch (STR #3373).
- Fix Fl_Tabs label drawing for Fl_Window children (STR #3075).

View File

@ -3,7 +3,7 @@
//
// Browser widget for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2016 by Bill Spitzak and others.
// Copyright 1998-2017 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@ -545,12 +545,12 @@ void Fl_Browser::item_draw(void* item, int X, int Y, int W, int H) const {
case 'r': talign = FL_ALIGN_RIGHT; break;
case 'B':
if (!(l->flags & SELECTED)) {
fl_color((Fl_Color)strtol(str, &str, 10));
fl_color((Fl_Color)strtoul(str, &str, 10));
fl_rectf(X, Y, w1, H);
} else while (isdigit(*str & 255)) str++; // skip digits
break;
case 'C':
lcol = (Fl_Color)strtol(str, &str, 10);
lcol = (Fl_Color)strtoul(str, &str, 10);
break;
case 'F':
font = (Fl_Font)strtol(str, &str, 10);