mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 04:37:35 +01:00
TAChart: Display legend symbols even if the text is empty
git-svn-id: trunk@37525 -
This commit is contained in:
parent
a3db9f6244
commit
8d53e7ceb4
@ -556,7 +556,10 @@ begin
|
||||
Result := Point(0, 0);
|
||||
for li in AItems do begin
|
||||
li.UpdateFont(ADrawer, prevFont);
|
||||
p := ADrawer.TextExtent(li.Text);
|
||||
if li.Text = '' then
|
||||
p := Point(0, ADrawer.TextExtent('I').Y)
|
||||
else
|
||||
p := ADrawer.TextExtent(li.Text);
|
||||
if li.HasSymbol then
|
||||
p.X += SYMBOL_TEXT_SPACING + SymbolWidth;
|
||||
Result := MaxPoint(p, Result);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user