TAChart: Fix TBarSeries drawing too thick bar border line when Margin is 0.

git-svn-id: trunk@64403 -
This commit is contained in:
wp 2021-01-17 22:47:13 +00:00
parent 618596c2ba
commit d7061ea8e8

View File

@ -1287,7 +1287,7 @@ var
TopLeft := ParentChart.GraphToImage(graphBar.a);
BottomRight := ParentChart.GraphToImage(graphBar.b);
TAGeometry.NormalizeRect(imageBar);
if IsRotated then inc(imageBar.Right) else dec(imageBar.Top);
if IsRotated then inc(imageBar.Right) else inc(imageBar.Bottom);
// Draw a line instead of an empty rectangle.
if (Bottom = Top) and IsRotated then Dec(Top);