mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 17:40:17 +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
|
FOwner: TCarbonComboBox; // Carbon combo box control owning strings
|
||||||
protected
|
protected
|
||||||
procedure Put(Index: Integer; const S: string); override;
|
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;
|
procedure InsertItem(Index: Integer; const S: string); override;
|
||||||
|
{$ENDIF}
|
||||||
procedure InsertItem(Index: Integer; const S: string; O: TObject); override;
|
procedure InsertItem(Index: Integer; const S: string; O: TObject); override;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TCarbonComboBox);
|
constructor Create(AOwner: TCarbonComboBox);
|
||||||
@ -116,6 +119,7 @@ begin
|
|||||||
FOwner.Insert(Index, S);
|
FOwner.Insert(Index, S);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IF FPC_FULLVERSION<20701}
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
Method: TCarbonComboBoxStrings.InsertItem
|
Method: TCarbonComboBoxStrings.InsertItem
|
||||||
Params: Index - Line index
|
Params: Index - Line index
|
||||||
@ -129,6 +133,7 @@ begin
|
|||||||
|
|
||||||
FOwner.Insert(Index, S);
|
FOwner.Insert(Index, S);
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
Method: TCarbonComboBoxStrings.InsertItem
|
Method: TCarbonComboBoxStrings.InsertItem
|
||||||
|
Loading…
Reference in New Issue
Block a user