summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYossi Zahn <yossizahn@gmail.com>2016-11-28 13:01:40 +0000
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-01-19 12:52:08 +0000
commit216047eeba5cf854be2d767708178db624b3a2da (patch)
tree08ac0f46356008bdbabf3ec219288ebe9f71de56
parentd8357326dade8c4d09244f94dc1b51c30e889547 (diff)
tdf#96354 correct broken autocorrect INitial CApitals
Change-Id: If65ec7814c3aed5e4c17294ae57c34550373469d Reviewed-on: https://gerrit.libreoffice.org/31317 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org> (cherry picked from commit c6db0e064959ec154db9471a8e1f1e2716bb3523) Reviewed-on: https://gerrit.libreoffice.org/33265 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--editeng/source/misc/svxacorr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index fafb4be81ebc..f9f701be04ae 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -113,13 +113,13 @@ static inline bool IsAutoCapitalizeWordDelim( const sal_Unicode c )
static inline bool IsLowerLetter( sal_Int32 nCharType )
{
return CharClass::isLetterType( nCharType ) &&
- 0 == ( css::i18n::KCharacterType::UPPER & nCharType);
+ ( css::i18n::KCharacterType::LOWER & nCharType);
}
static inline bool IsUpperLetter( sal_Int32 nCharType )
{
return CharClass::isLetterType( nCharType ) &&
- 0 == ( css::i18n::KCharacterType::LOWER & nCharType);
+ ( css::i18n::KCharacterType::UPPER & nCharType);
}
bool lcl_IsUnsupportedUnicodeChar( CharClass& rCC, const OUString& rTxt,
@@ -424,7 +424,7 @@ bool SvxAutoCorrect::FnCapitalStartWord( SvxAutoCorrDoc& rDoc, const OUString& r
if( xSpeller->hasLanguage(eLang) )
{
Sequence< css::beans::PropertyValue > aEmptySeq;
- if (!xSpeller->spell(sWord, eLang, aEmptySeq).is())
+ if (xSpeller->isValid(sWord, eLang, aEmptySeq))
{
return false;
}