mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 23:00:15 +02:00
lcl: forms: allow changing TCustomForm.DesignTimeDPI in runtime. Fix brackets.
git-svn-id: trunk@53511 -
This commit is contained in:
parent
2612f8b61e
commit
2d8600e1fd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user