Kaydet (Commit) defe079d authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst 5c3dc679
......@@ -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() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment