mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 06:39:52 +02:00
TAChart: Fix ColorMapSeries painting failure in case of StepY=1
git-svn-id: trunk@48594 -
This commit is contained in:
parent
4df7f88aee
commit
c95cc0db19
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user