mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 05:50:21 +02:00
LCL/SpeedButton: Fix misaligned icons in TFilenameEdit etc.
This commit is contained in:
parent
6746d2273d
commit
2b04018e69
@ -1096,13 +1096,13 @@ var
|
||||
AImageRes: TScaledImageListResolution;
|
||||
AIndex: Integer;
|
||||
AEffect: TGraphicsDrawEffect;
|
||||
begin
|
||||
if (FGlyph.Glyph.Empty) and ((Images = nil) or (ImageIndex = -1)) then
|
||||
begin
|
||||
if (FGlyph.Glyph.Empty) and ((Images = nil) or (ImageIndex = -1)) and (FGlyph.LCLGlyphName <> '') then
|
||||
begin
|
||||
Result.CX := 0;
|
||||
Result.CY := 0;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
FGlyph.GetImageIndexAndEffect(Low(TButtonState), Font.PixelsPerInch,
|
||||
GetCanvasScaleFactor, AImageRes, AIndex, AEffect);
|
||||
|
Loading…
Reference in New Issue
Block a user