summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-12-22 23:57:50 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-25 11:42:55 +0000
commit9ca0a30de75b0b563c95c6ff8863b1c4f7ed1c6b (patch)
treea853d51bd4ed903187920caef7ec8a519fc88c17
parent1818af4b72d35f26fbfe12acc894f7bbaa984dba (diff)
Resolves fdo#87581: Pb to delete words with 2 initials in Autocorr Except
Cherry-picked from a5811c70bb443190a76a52585580659f96a58a04 Change-Id: I49b97c5c1546f0410542cb67540c5507c95bec98 Reviewed-on: https://gerrit.libreoffice.org/13618 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--cui/source/tabpages/autocdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 5cd2da24da9b..cf29804e5e26 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -1489,7 +1489,7 @@ bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet* )
for( i = nCount; i; )
{
OUString aString = (*pWrdList)[ --i ];
- if( USHRT_MAX == m_pDoubleCapsLB->GetEntryPos(aString) )
+ if( LISTBOX_ENTRY_NOTFOUND == m_pDoubleCapsLB->GetEntryPos(aString) )
{
pWrdList->erase(i);
}