LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File build-i18npool-with-icu-4.0.diff of Package libreoffice (Project LibreOffice:Unstable)

--- i18npool/source/ordinalsuffix/ordinalsuffix.cxx.old	2012-10-12 12:39:47.000000000 +0200
+++ i18npool/source/ordinalsuffix/ordinalsuffix.cxx	2012-10-15 14:59:19.000000000 +0200
@@ -97,7 +97,9 @@ uno::Sequence< OUString > SAL_CALL Ordin
         return retValue;
 
     icu::UnicodeString sFormatWithNoOrdinal;
-    xNumberFormat->format((int32_t)nNumber, sFormatWithNoOrdinal, NULL, nCode);
+    icu::Formattable ftmNumber((int32_t)nNumber);
+    icu::FieldPosition icuPos;
+    xNumberFormat->format(ftmNumber, sFormatWithNoOrdinal, icuPos, nCode);
     if (!U_SUCCESS(nCode))
         return retValue;