mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 20:40:25 +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);
|
procedure TCustomForm.SetDesignTimeDPI(const aDesignTimeDPI: Integer);
|
||||||
begin
|
begin
|
||||||
if (csLoading in ComponentState) // allow setting only when loading
|
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
|
FDesignTimeDPI := aDesignTimeDPI
|
||||||
else
|
else
|
||||||
raise EInvalidOperation.Create(sCannotSetDesignTimeDPI);
|
raise EInvalidOperation.Create(sCannotSetDesignTimeDPI);
|
||||||
|
Loading…
Reference in New Issue
Block a user