TAChart: Do not try to display empty hint in TDataPointHintTool.

This is a workaround for issue #22498.

git-svn-id: trunk@38024 -
This commit is contained in:
ask 2012-07-24 06:08:01 +00:00
parent e08839123f
commit 78b05dc0a3

View File

@ -1510,6 +1510,7 @@ begin
if FHintWindow = nil then
FHintWindow := THintWindow.Create(nil);
h := GetHintText;
if h = '' then exit;
r := FHintWindow.CalcHintRect(FChart.Width, h, nil);
OffsetRect(r, APoint.X, APoint.Y);
FHintWindow.ActivateHint(r, h);