mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-01 00:23:42 +02:00
LCL: fixed some nil checks
git-svn-id: trunk@24397 -
This commit is contained in:
parent
29ab9f7299
commit
d69055d322
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user