lcl: forms: allow changing TCustomForm.DesignTimeDPI in runtime. Fix brackets.

git-svn-id: trunk@53511 -
This commit is contained in:
ondrej 2016-12-01 21:00:24 +00:00
parent 2612f8b61e
commit 2d8600e1fd

View File

@ -356,7 +356,7 @@ end;
procedure TCustomForm.SetDesignTimeDPI(const aDesignTimeDPI: Integer);
begin
if (csLoading in ComponentState) // allow setting only when loading
or not (csDesigning in ComponentState)) then // or in runtime (the programmer has to know why he is doing that)
or not (csDesigning in ComponentState) then // or in runtime (the programmer has to know why he is doing that)
FDesignTimeDPI := aDesignTimeDPI
else
raise EInvalidOperation.Create(sCannotSetDesignTimeDPI);