From 5b6597fee638d376e832f146357226d42f2604cb Mon Sep 17 00:00:00 2001 From: wp Date: Wed, 19 Nov 2014 10:24:39 +0000 Subject: [PATCH] TAChart: Fix missing axis labels if chart uses transformations to provide an inverted axis for paned chart. git-svn-id: trunk@46884 - --- components/tachart/tachartaxisutils.pas | 4 +++- components/tachart/tachartlazaruspkg.lpk | 5 ----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/components/tachart/tachartaxisutils.pas b/components/tachart/tachartaxisutils.pas index cb5f9a3ab5..4971dd2c17 100644 --- a/components/tachart/tachartaxisutils.pas +++ b/components/tachart/tachartaxisutils.pas @@ -326,7 +326,9 @@ var begin coord := GraphToImage(AMark); if - not IsInClipRange(coord) or not InRangeUlps(AMark, FValueMin, FValueMax, 2) + not IsInClipRange(coord) or + ((FValueMax >= FValueMin) and not InRangeUlps(AMark, FValueMin, FValueMax, 2)) or + ((FValueMax < FValueMin) and not InRangeUlps(AMark, FValueMax, FValueMin, 2)) then exit; if FAxis.Grid.Visible then begin diff --git a/components/tachart/tachartlazaruspkg.lpk b/components/tachart/tachartlazaruspkg.lpk index 7b7eddf41c..69f5786db6 100644 --- a/components/tachart/tachartlazaruspkg.lpk +++ b/components/tachart/tachartlazaruspkg.lpk @@ -22,11 +22,6 @@ - - - - -