mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 19:21:07 +02:00
TAChart: Avoid uninitialized parameter in TBarSeries.Extent calculation when XCount = 0.
git-svn-id: trunk@61083 -
This commit is contained in:
parent
fda91e1ea3
commit
ae5ab44793
@ -1522,7 +1522,7 @@ begin
|
||||
|
||||
// Show first and last bars fully.
|
||||
if Source.XCount = 0 then begin
|
||||
BarOffsetWidth(x, 0, ofs, w);
|
||||
BarOffsetWidth(0.0, 0, ofs, w);
|
||||
Result.a.X -= (ofs + w);
|
||||
Result.b.X += (ofs + w);
|
||||
end else begin
|
||||
|
Loading…
Reference in New Issue
Block a user