LCL: Canvas.GradientFill covers the same area as Canvas.FillRect (issue #13636)

git-svn-id: trunk@19798 -
This commit is contained in:
vincents 2009-05-04 12:34:05 +00:00
parent 9f6417e73c
commit 040222e329

View File

@ -430,7 +430,7 @@ begin
Count := ARect.Right - ARect.Left;
Changing;
for I := 0 to Count do
for I := 0 to Count-1 do
begin
Pen.Color := RGBToColor(RStart + (i * RDiff) div Count,
GStart + (i * GDiff) div Count,