diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-05 10:00:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-05 10:04:38 +0100 |
commit | defe079d455ccc958fd0128e8a8cf0e4aeb5cd9c (patch) | |
tree | 963c4935c293a7b74d6697e54c9c56e9e32c97ef /i18npool | |
parent | 5c3dc6791c8737b24d5b8211bf7330caff47b62b (diff) |
Make autocorrect of 1st to 1 + superscripted st work again
It surely doesn't matter if the result of normalization is unchanged
Change-Id: I87dfd0dadee33897f5df4b0dc532166a8bd9d7e5
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/ordinalsuffix/ordinalsuffix.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx index 596c6ffc001a..4d75b0f2b46e 100644 --- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx +++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx @@ -80,7 +80,7 @@ uno::Sequence< OUString > SAL_CALL OrdinalSuffix::getOrdinalSuffix( sal_Int32 nN icu::UnicodeString normalized; nCode = U_ZERO_ERROR; icu::Normalizer::normalize( icuRet, UNORM_NFKC, 0, normalized, nCode ); - if ( U_SUCCESS( nCode ) && ( normalized != icuRet ) ) + if ( U_SUCCESS( nCode ) ) { // Convert the normalized UnicodeString to OUString OUString sValue( reinterpret_cast<const sal_Unicode *>( normalized.getBuffer( ) ), normalized.length() ); |