mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 20:02:48 +01:00
TAChart: Fix legend row count calculation
git-svn-id: trunk@33135 -
This commit is contained in:
parent
678f40a024
commit
3761f748ea
@ -558,7 +558,7 @@ var
|
||||
begin
|
||||
with AData do begin
|
||||
FColCount := Max(Min(ColumnCount, FItems.Count), 1);
|
||||
FRowCount := FItems.Count div FColCount;
|
||||
FRowCount := (FItems.Count - 1) div FColCount + 1;
|
||||
FItemSize := MeasureItem(FDrawer, FItems);
|
||||
legendSize.X := (FItemSize.X + Spacing) * FColCount + Spacing;
|
||||
legendSize.Y := (FItemSize.Y + Spacing) * FRowCount + Spacing;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user