LCL: Fix "Read error" when copy-pasting TPairSplitter. Patch from August Klein, issue #19234

git-svn-id: trunk@30563 -
This commit is contained in:
juha 2011-05-05 23:16:49 +00:00
parent 4348781a98
commit ea174afc6b

View File

@ -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