mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 07:49:53 +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 might be -1, if current text is not in the list.
|
||||
if (Index>=0) then
|
||||
Text := Items[Index]
|
||||
TWin32WSCustomComboBox.SetText(ComboBox, Items[Index]);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user