summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-12-22 23:57:50 +0100
committerAndras Timar <andras.timar@collabora.com>2015-01-08 15:09:44 +0100
commitbc3a5901092079551309edb011467512bbfdf3be (patch)
tree40e7702540dddbd1880ba7620aa5bbb370e0f58c
parent7f0ceaf422b20288985259a9befa4e823318c828 (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/13619 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 4d782fe3ba2f40804cad202d88ea64fde1396032)
-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 1ac62ea42cc0..b8de639e8582 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);
}