summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
Diffstat (limited to 'editeng')
-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;
}