mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 09:19:14 +02:00
LCL/SpeedButton: Fix misaligned icons in TFilenameEdit etc.
(cherry picked from commit 2b04018e69
)
This commit is contained in:
parent
2187550bd5
commit
bbac02ab05
@ -1080,13 +1080,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