LCL: fixed some nil checks

git-svn-id: trunk@24397 -
This commit is contained in:
mattias 2010-04-04 14:37:47 +00:00
parent 29ab9f7299
commit d69055d322
2 changed files with 4 additions and 4 deletions

View File

@ -292,7 +292,7 @@ var
OldChange: TNotifyEvent;
OldCurrent: Integer;
begin
if not FIcon.Empty then
if Assigned(FIcon) and not FIcon.Empty then
begin
if FBigIconHandle = 0 then
begin
@ -319,7 +319,7 @@ var
OldChange: TNotifyEvent;
OldCurrent: Integer;
begin
if not FIcon.Empty then
if Assigned(FIcon) and not FIcon.Empty then
begin
if FSmallIconHandle = 0 then
begin

View File

@ -61,9 +61,9 @@ begin
{if (FHorzScrollBar.Range>Result.Right)
or (FVertScrollBar.Range>Result.Bottom) then
DebugLn(['TScrollingWinControl.GetLogicalClientRect Client=',ClientWidth,'x',ClientHeight,' Ranges=',FHorzScrollBar.Range,'x',FVertScrollBar.Range]);}
if (FHorzScrollBar.Range > Result.Right) then
if Assigned(FHorzScrollBar) and (FHorzScrollBar.Range > Result.Right) then
Result.Right := FHorzScrollBar.Range;
if (FVertScrollBar.Range > Result.Bottom) then
if Assigned(FVertScrollBar) and (FVertScrollBar.Range > Result.Bottom) then
Result.Bottom := FVertScrollBar.Range;
end;