TAChart: Fix ColorMapSeries painting failure in case of StepY=1

git-svn-id: trunk@48594 -
This commit is contained in:
wp 2015-04-02 15:02:33 +00:00
parent 4df7f88aee
commit c95cc0db19

View File

@ -1708,8 +1708,8 @@ begin
ADrawer.SetPenParams(psClear, clTAColor);
end;
if StepX > 1 then scaled_stepX := Max(1, ADrawer.Scale(StepX));
if StepY > 1 then scaled_stepY := Max(1, ADrawer.Scale(StepY));
scaled_stepX := IfThen(StepX > 1, Max(1, ADrawer.Scale(StepX)), 1);
scaled_stepY := IfThen(StepY > 1, Max(1, ADrawer.Scale(StepY)), 1);
try
pt.Y := (r.Top div scaled_stepY - 1) * scaled_stepY + offset.Y mod scaled_stepY;