mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 19:33:49 +02:00
TAChart: Fix division by zero in legend drawing
git-svn-id: trunk@29726 -
This commit is contained in:
parent
f72b27556b
commit
b87ff3d4df
@ -348,13 +348,14 @@ var
|
||||
i, itemHeight: Integer;
|
||||
r: TRect;
|
||||
begin
|
||||
try
|
||||
// Draw the background and the border.
|
||||
ADrawer.Font := Font;
|
||||
ADrawer.Brush := BackgroundBrush;
|
||||
ADrawer.Pen := Frame;
|
||||
ADrawer.Rectangle(ABounds);
|
||||
// Draw the background and the border.
|
||||
ADrawer.Font := Font;
|
||||
ADrawer.Brush := BackgroundBrush;
|
||||
ADrawer.Pen := Frame;
|
||||
ADrawer.Rectangle(ABounds);
|
||||
if AItems.Count = 0 then exit;
|
||||
|
||||
try
|
||||
r := ABounds;
|
||||
r.Right -= 1;
|
||||
ADrawer.ClippingStart(r);
|
||||
|
Loading…
Reference in New Issue
Block a user