tachart: fix compiling for the coming TRect advanced functions in FPC 3.1.1 (see issue #29479)

git-svn-id: trunk@51383 -
This commit is contained in:
ondrej 2016-01-23 00:51:53 +00:00
parent 95746a6ff5
commit 9f13b0b11a

View File

@ -1018,7 +1018,7 @@ var
with imageBar do begin
TopLeft := ParentChart.GraphToImage(graphBar.a);
BottomRight := ParentChart.GraphToImage(graphBar.b);
NormalizeRect(imageBar);
TAGeometry.NormalizeRect(imageBar);
// Draw a line instead of an empty rectangle.
if Bottom = Top then Dec(Top);