From a9270e1c46d7fe7ab6bed3cdfa55df42e5801c34 Mon Sep 17 00:00:00 2001 From: ask Date: Mon, 21 Mar 2011 13:19:53 +0000 Subject: [PATCH] TAChart: Do not reserve space for invisible axis marks git-svn-id: trunk@29962 - --- components/tachart/tachartaxis.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tachart/tachartaxis.pas b/components/tachart/tachartaxis.pas index 3ad5aeeee5..55020b7701 100644 --- a/components/tachart/tachartaxis.pas +++ b/components/tachart/tachartaxis.pas @@ -644,7 +644,7 @@ procedure TChartAxis.Measure( t: String; begin Result := Size(0, 0); - if AMin = AMax then exit; + if (AMin = AMax) or not Marks.Visible then exit; GetMarkValues(AMin, AMax); for i := 0 to High(FMarkTexts) do begin // CalculateTransformationCoeffs changes axis interval, so it is possibile