mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
LCL: Fix "Read error" when copy-pasting TPairSplitter. Patch from August Klein, issue #19234
git-svn-id: trunk@30563 -
This commit is contained in:
parent
4348781a98
commit
ea174afc6b
@ -362,7 +362,8 @@ begin
|
||||
with GetControlClassDefaultSize do
|
||||
SetInitialBounds(0, 0, CX, CY);
|
||||
FPosition:=45;
|
||||
CreateSides;
|
||||
if not (csDesigning in ComponentState) then
|
||||
CreateSides;
|
||||
end;
|
||||
|
||||
destructor TCustomPairSplitter.Destroy;
|
||||
@ -382,6 +383,7 @@ var
|
||||
i: Integer;
|
||||
APosition: Integer;
|
||||
begin
|
||||
CreateSides;
|
||||
inherited CreateWnd;
|
||||
for i := Low(FSides) to High(FSides) do
|
||||
if FSides[i] <> nil then
|
||||
|
Loading…
Reference in New Issue
Block a user