summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-06-04 14:39:05 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-06-04 14:39:05 +0000
commit9ee09b1f9001ac687255318ca7ffdf8ca041ca10 (patch)
treec516eca2988e8e1b637daa3d4b5e23af85d5eb51 /src
parent822f14c77a0164c2816e1d2096122e18a7be327f (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Browser.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx
index d0a9b9989..9833d9693 100644
--- a/src/Fl_Browser.cxx
+++ b/src/Fl_Browser.cxx
@@ -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);