mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-21 02:19:48 +01:00
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:
parent
e08839123f
commit
78b05dc0a3
@ -1510,6 +1510,7 @@ begin
|
|||||||
if FHintWindow = nil then
|
if FHintWindow = nil then
|
||||||
FHintWindow := THintWindow.Create(nil);
|
FHintWindow := THintWindow.Create(nil);
|
||||||
h := GetHintText;
|
h := GetHintText;
|
||||||
|
if h = '' then exit;
|
||||||
r := FHintWindow.CalcHintRect(FChart.Width, h, nil);
|
r := FHintWindow.CalcHintRect(FChart.Width, h, nil);
|
||||||
OffsetRect(r, APoint.X, APoint.Y);
|
OffsetRect(r, APoint.X, APoint.Y);
|
||||||
FHintWindow.ActivateHint(r, h);
|
FHintWindow.ActivateHint(r, h);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user