mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 12:29:18 +02:00
lcl: fix itemindex when combobox has duplicates. Issue #20846
git-svn-id: trunk@34053 -
This commit is contained in:
parent
c526606ce5
commit
4361a67b65
@ -578,7 +578,7 @@ var
|
|||||||
Index := ItemIndex;
|
Index := ItemIndex;
|
||||||
// Index might be -1, if current text is not in the list.
|
// Index might be -1, if current text is not in the list.
|
||||||
if (Index>=0) then
|
if (Index>=0) then
|
||||||
Text := Items[Index]
|
TWin32WSCustomComboBox.SetText(ComboBox, Items[Index]);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user