mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 23:19:28 +02:00
fixed TRadioGroup in initializewnd
git-svn-id: trunk@8716 -
This commit is contained in:
parent
715eb7d077
commit
c89be56e6f
@ -84,9 +84,9 @@ procedure TCustomRadioGroup.InitializeWnd;
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
if (FItemIndex <> -1) then
|
||||
if (FItemIndex <> -1) and (FItemIndex<FButtonList.Count) then
|
||||
TRadioButton(FButtonList[FItemIndex]).Checked := true
|
||||
else
|
||||
else if FHiddenButton<>nil then
|
||||
FHiddenButton.Checked:=true;
|
||||
for i:=0 to FItems.Count-1 do begin
|
||||
TRadioButton(FButtonList[i]).Checked := fItemIndex = i;
|
||||
|
Loading…
Reference in New Issue
Block a user