lcl: add missing checks for FControl in TControlBorderSpacing

git-svn-id: trunk@39207 -
This commit is contained in:
blikblum 2012-10-31 02:44:08 +00:00
parent 70e7f9f4f3
commit 2d708f59bf

View File

@ -3235,7 +3235,10 @@ end;
function TControlBorderSpacing.IsInnerBorderStored: boolean;
begin
Result:=Control.IsBorderSpacingInnerBorderStored;
if Control <> nil then
Result:=Control.IsBorderSpacingInnerBorderStored
else
Result:=True;
end;
function TControlBorderSpacing.IsLeftStored: boolean;
@ -3402,7 +3405,8 @@ end;
procedure TControlBorderSpacing.Change(InnerSpaceChanged: Boolean);
begin
FControl.DoBorderSpacingChange(Self,InnerSpaceChanged);
if FControl <> nil then
FControl.DoBorderSpacingChange(Self,InnerSpaceChanged);
if Assigned(OnChange) then OnChange(Self);
end;