summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-10-06 17:33:17 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-10-06 17:33:17 +0000
commit705780a301ce2a10deb504b1b4f07d40f836818b (patch)
tree799ef711c7b0883d33135abd9a3f9c64e921ed98
parentab3eb7e719fbb5b37cf19920c95a1648199e6015 (diff)
Fixed Fl_Chart drawing (STR #1756)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES1
-rw-r--r--src/Fl_Chart.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index e5a33c4ad..1d387b508 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,7 @@ CHANGES IN FLTK 1.1.8
- Documentation fixes (STR #1454, STR #1455, STR #1456,
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
STR #1639, STR #1645, STR #1644)
+ - Fixed Fl_Chart drawing (STR #1756)
- Fixed mapping of subwindows with unmapped parent
windows (STR #1706)
- Fixed rendering of grayscale images with alpha
diff --git a/src/Fl_Chart.cxx b/src/Fl_Chart.cxx
index fce4bf045..48529924d 100644
--- a/src/Fl_Chart.cxx
+++ b/src/Fl_Chart.cxx
@@ -115,7 +115,7 @@ static void draw_horbarchart(int x,int y,int w,int h,
if (ww > 0)
fl_rectbound(zeroh,y+i*bwidth,ww+1,bwidth+1, (Fl_Color)entries[i].col);
else if (ww < 0)
- fl_rectbound(zeroh+w,y+i*bwidth,-ww+1,bwidth+1,(Fl_Color)entries[i].col);
+ fl_rectbound(zeroh+ww,y+i*bwidth,-ww+1,bwidth+1,(Fl_Color)entries[i].col);
}
/* Draw the labels */
fl_color(textcolor);