mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 04:19:19 +02:00
nil check
git-svn-id: trunk@4889 -
This commit is contained in:
parent
901930547e
commit
db29443b99
@ -277,8 +277,14 @@ End;
|
||||
{ TWin32CheckListBoxStrings }
|
||||
|
||||
function TWin32CheckListBoxStrings.GetChecked(const Index: Integer): Boolean;
|
||||
var
|
||||
Data: PWin32CheckListBoxItemRecord;
|
||||
begin
|
||||
Result:= GetItemRecord(Index, false)^.Checked;
|
||||
Data := GetItemRecord(Index, false);
|
||||
if Data <> nil then
|
||||
Result := Data^.Checked
|
||||
else
|
||||
Result := false;
|
||||
end;
|
||||
|
||||
procedure TWin32CheckListBoxStrings.SetChecked(const Index: Integer;
|
||||
@ -521,6 +527,9 @@ End;
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.24 2003/12/15 22:04:05 micha
|
||||
nil check
|
||||
|
||||
Revision 1.23 2003/12/15 21:57:16 micha
|
||||
checklistbox, implement object+checked; from vincent
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user