summaryrefslogtreecommitdiffstats
path: root/cui/source/inc/cuifmsearch.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-03-01 03:13:28 +0100
committerEike Rathke <erack@redhat.com>2014-03-05 07:31:19 -0600
commit68ec95b3f80408ae50897b043eed69a07d084df9 (patch)
tree5d32076e843fae44f28e3c8d9dbbacf7648fecbc /cui/source/inc/cuifmsearch.hxx
parentfdo#67104 Use correct command for show grid (diff)
downloadcore-68ec95b3f80408ae50897b043eed69a07d084df9.tar.gz
core-68ec95b3f80408ae50897b043eed69a07d084df9.zip
made ListBox handle more than 64k elements, fdo#61520 related
ListBox and related now handle up to sal_Int32 elements correctly. sal_Int32 instead of sal_Size or size_t because of UNO and a11y API. Also disentangled some of the mess of SvTreeList and other containers regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures. Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a Reviewed-on: https://gerrit.libreoffice.org/8460 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'cui/source/inc/cuifmsearch.hxx')
-rw-r--r--cui/source/inc/cuifmsearch.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/inc/cuifmsearch.hxx b/cui/source/inc/cuifmsearch.hxx
index 4688403c92db..31acdbc87752 100644
--- a/cui/source/inc/cuifmsearch.hxx
+++ b/cui/source/inc/cuifmsearch.hxx
@@ -187,8 +187,8 @@ private:
inline void FmSearchDialog::SetActiveField(const OUString& strField)
{
- sal_uInt16 nInitialField = m_lbField.GetEntryPos(strField);
- if (nInitialField == COMBOBOX_ENTRY_NOTFOUND)
+ sal_Int32 nInitialField = m_lbField.GetEntryPos(strField);
+ if (nInitialField == LISTBOX_ENTRY_NOTFOUND)
nInitialField = 0;
m_lbField.SelectEntryPos(nInitialField);
LINK(this, FmSearchDialog, OnFieldSelected).Call(&m_lbField);