mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 07:49:25 +02:00
TAChart: Avoid TDatapointHintTool crashing if point index is -1.
git-svn-id: trunk@54312 -
This commit is contained in:
parent
d3e72e4492
commit
48630512fe
@ -1832,7 +1832,7 @@ procedure TDataPointHintTool.MouseMove(APoint: TPoint);
|
||||
|
||||
function GetHintText: String;
|
||||
begin
|
||||
if UseDefaultHintText then begin
|
||||
if UseDefaultHintText and (PointIndex > -1) then begin
|
||||
if Series is TChartSeries then
|
||||
Result := (Series as TChartSeries).FormattedMark(PointIndex)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user