mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 15:39:30 +02:00
LCL: control: DoFixDesignFontPPI Begin/EndUpdate
git-svn-id: trunk@54249 -
This commit is contained in:
parent
dae26dc5a9
commit
301fe8fb23
@ -1509,8 +1509,13 @@ begin
|
||||
if AFont.PixelsPerInch <> ADesignTimePPI then
|
||||
begin
|
||||
H := AFont.Height;
|
||||
AFont.Height := MulDiv(H, AFont.PixelsPerInch, ADesignTimePPI);
|
||||
AFont.PixelsPerInch := ADesignTimePPI;
|
||||
AFont.BeginUpdate;
|
||||
try
|
||||
AFont.Height := MulDiv(H, AFont.PixelsPerInch, ADesignTimePPI);
|
||||
AFont.PixelsPerInch := ADesignTimePPI;
|
||||
finally
|
||||
AFont.EndUpdate;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user