diff options
author | Eike Rathke <erack@redhat.com> | 2014-05-13 19:19:45 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-05-15 12:34:35 +0200 |
commit | 1d1a28290a87e2db9e01535792aa0ed3dcbd27b7 (patch) | |
tree | 9e3c8cd031579b6915beb477ead839afc2fe2372 /vcl | |
parent | f9a1e9074729d540d29a9ded2b3303373d3a9011 (diff) |
+sal_Int32 ComboBox::GetEntryPos( const void* pData ) const
Change-Id: I9199da366eb70e818e1d85823cd7cf530f70167d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/combobox.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index cfd2e8e45a6a..a5810f27a074 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -931,6 +931,14 @@ sal_Int32 ComboBox::GetEntryPos( const OUString& rStr ) const return nPos; } +sal_Int32 ComboBox::GetEntryPos( const void* pData ) const +{ + sal_Int32 nPos = mpImplLB->GetEntryList()->FindEntry( pData ); + if ( nPos != LISTBOX_ENTRY_NOTFOUND ) + nPos = nPos - mpImplLB->GetEntryList()->GetMRUCount(); + return nPos; +} + OUString ComboBox::GetEntry( sal_Int32 nPos ) const { const sal_Int32 nMRUCount = mpImplLB->GetEntryList()->GetMRUCount(); |