mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
TAChart: Raise an EChartError if TBarSeries.Extent is called before adding the series to a chart (https://forum.lazarus.freepascal.org/index.php/topic,47295.msg338189.html).
git-svn-id: trunk@62162 -
This commit is contained in:
parent
d8191b7e9b
commit
7db04f024b
@ -1516,6 +1516,10 @@ var
|
||||
i: Integer;
|
||||
begin
|
||||
Result := inherited Extent;
|
||||
|
||||
if FChart = nil then
|
||||
raise EChartError.Create('Calculation of TBarSeries.Extent is not possible when the series is not added to a chart.');
|
||||
|
||||
if IsEmpty then exit;
|
||||
if BarWidthStyle = bwPercentMin then
|
||||
UpdateMinXRange;
|
||||
|
Loading…
Reference in New Issue
Block a user