mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 14:29:31 +02:00
lcl: carbon: fixed duplicates in combobox in fpc 2.7.1
git-svn-id: trunk@40841 -
This commit is contained in:
parent
b4b333baae
commit
5afa7d5da1
@ -40,7 +40,10 @@ type
|
||||
FOwner: TCarbonComboBox; // Carbon combo box control owning strings
|
||||
protected
|
||||
procedure Put(Index: Integer; const S: string); override;
|
||||
{$IF FPC_FULLVERSION<20701}
|
||||
// before fpc 2.7.1 InsertItem(Index,S) did not call InsertItem(Index,S,nil)
|
||||
procedure InsertItem(Index: Integer; const S: string); override;
|
||||
{$ENDIF}
|
||||
procedure InsertItem(Index: Integer; const S: string; O: TObject); override;
|
||||
public
|
||||
constructor Create(AOwner: TCarbonComboBox);
|
||||
@ -116,6 +119,7 @@ begin
|
||||
FOwner.Insert(Index, S);
|
||||
end;
|
||||
|
||||
{$IF FPC_FULLVERSION<20701}
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCarbonComboBoxStrings.InsertItem
|
||||
Params: Index - Line index
|
||||
@ -129,6 +133,7 @@ begin
|
||||
|
||||
FOwner.Insert(Index, S);
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCarbonComboBoxStrings.InsertItem
|
||||
|
Loading…
Reference in New Issue
Block a user