mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:39:20 +02:00
TAChart: Find point index error in relation with ColorEach of line series (https://forum.lazarus.freepascal.org/index.php/topic,56324.msg418533.html#msg418533).
This commit is contained in:
parent
256ef8de78
commit
925e2e7370
@ -672,7 +672,7 @@ var
|
|||||||
|
|
||||||
ADrawer.Pen := LinePen;
|
ADrawer.Pen := LinePen;
|
||||||
imgPt1 := ParentChart.GraphToImage(gp);
|
imgPt1 := ParentChart.GraphToImage(gp);
|
||||||
col1 := GetPtColor(i);
|
col1 := GetPtColor(i + FLoBound);
|
||||||
|
|
||||||
// First line for line type ltFromOrigin
|
// First line for line type ltFromOrigin
|
||||||
if LineType = ltFromOrigin then begin
|
if LineType = ltFromOrigin then begin
|
||||||
@ -693,7 +693,7 @@ var
|
|||||||
hasBreak := false;
|
hasBreak := false;
|
||||||
end;
|
end;
|
||||||
imgPt2 := ParentChart.GraphToImage(gp);
|
imgPt2 := ParentChart.GraphToImage(gp);
|
||||||
col2 := GetPtColor(i);
|
col2 := GetPtColor(i + FLoBound);
|
||||||
if imgPt1 <> imgPt2 then begin
|
if imgPt1 <> imgPt2 then begin
|
||||||
case FColorEach of
|
case FColorEach of
|
||||||
ceLineBefore, cePointAndLineBefore: col := col2;
|
ceLineBefore, cePointAndLineBefore: col := col2;
|
||||||
|
Loading…
Reference in New Issue
Block a user