mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 10:59:07 +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
|
with GetControlClassDefaultSize do
|
||||||
SetInitialBounds(0, 0, CX, CY);
|
SetInitialBounds(0, 0, CX, CY);
|
||||||
FPosition:=45;
|
FPosition:=45;
|
||||||
CreateSides;
|
if not (csDesigning in ComponentState) then
|
||||||
|
CreateSides;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TCustomPairSplitter.Destroy;
|
destructor TCustomPairSplitter.Destroy;
|
||||||
@ -382,6 +383,7 @@ var
|
|||||||
i: Integer;
|
i: Integer;
|
||||||
APosition: Integer;
|
APosition: Integer;
|
||||||
begin
|
begin
|
||||||
|
CreateSides;
|
||||||
inherited CreateWnd;
|
inherited CreateWnd;
|
||||||
for i := Low(FSides) to High(FSides) do
|
for i := Low(FSides) to High(FSides) do
|
||||||
if FSides[i] <> nil then
|
if FSides[i] <> nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user