IDE: Fix TForm.DesignTimePPI changing when form is loaded with different PPI and "Force DPI scaling in design time" is off. Issue #37227, patch by Emil Totev.

git-svn-id: trunk@63482 -
This commit is contained in:
wp 2020-06-30 08:55:48 +00:00
parent 70293d07b0
commit bfeb99af9e

View File

@ -6156,8 +6156,8 @@ begin
begin
DsgControl.AutoAdjustLayout(lapAutoAdjustForDPI, DsgControl.DesignTimePPI, Screen.PixelsPerInch, 0, 0);
DesignerProcs.ScaleNonVisual(DsgControl, DsgControl.DesignTimePPI, Screen.PixelsPerInch);
DsgControl.DesignTimePPI := Screen.PixelsPerInch;
end;
DsgControl.DesignTimePPI := Screen.PixelsPerInch;
DsgControl.PixelsPerInch := Screen.PixelsPerInch;
end;
{$IF (FPC_FULLVERSION >= 30003)} // TDataModule.DesignPPI was added in FPC 3.0.3