diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-05 10:00:37 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-09-06 15:31:01 +0200 |
commit | 966c1bd122d8258dd8b1abfe638de7b1ce0d3c98 (patch) | |
tree | 5406b8458e812dcffe0428982509ba389fe206dd | |
parent | 3632b3a01fa8ad5f111658ff5cea555db58637fd (diff) |
fdo#38242: Make autocorrect of 1st to 1 + superscripted st work again
It surely doesn't matter if the result of normalization is unchanged
(cherry picked from commit defe079d455ccc958fd0128e8a8cf0e4aeb5cd9c)
Change-Id: I87dfd0dadee33897f5df4b0dc532166a8bd9d7e5
Signed-off-by: Michael Stahl <mstahl@redhat.com>
-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 95e13415c709..aff018f088cd 100644 --- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx +++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx @@ -89,7 +89,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() ); |