IDE: Update Application.Scaled line in project main source correctly.

git-svn-id: trunk@62580 -
This commit is contained in:
juha 2020-01-23 14:17:28 +00:00
parent 7cfe7dc26d
commit 1bfb7ec3fd

View File

@ -4360,7 +4360,7 @@ begin
//DebugLn(['UpdateAppScaledInSource: Project Scaled=',ProjScaled,', Scaled Statement=',ScaledStat]);
if pfMainUnitHasScaledStatement in Project1.Flags then
begin // Add Scaled statement if not there already.
if (ScaledStat = ProjScaled) or not ProjScaled then
if ScaledStat = ProjScaled then
Exit;
//DebugLn(['UpdateAppScaledInSource: Setting Scaled to ',ProjScaled]);
if not CodeToolBoss.SetApplicationScaledStatement(Project1.MainUnitInfo.Source, ProjScaled) then