summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/Library_cui.mk1
-rw-r--r--cui/source/tabpages/autocdlg.cxx7
2 files changed, 6 insertions, 2 deletions
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk
index 19d23451bf06..cc80cf419bce 100644
--- a/cui/Library_cui.mk
+++ b/cui/Library_cui.mk
@@ -40,6 +40,7 @@ $(eval $(call gb_Library_use_libraries,cui,\
drawinglayer \
editeng \
i18nlangtag \
+ i18nutil \
$(if $(ENABLE_JAVA), \
jvmfwk) \
lng \
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 0fb4c17fcdc8..67a2181ef86e 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <i18nutil/unicode.hxx>
#include <vcl/builder.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/field.hxx>
@@ -659,7 +660,8 @@ void OfaSwAutoFmtOptionsPage::Reset( const SfxItemSet& )
m_pCheckLB->SetUserData( REPLACE_BULLETS, pUserData );
nPercent = pOpt->nRightMargin;
- sMargin = " " + OUString::number( nPercent ) + "%";
+ sMargin = " " +
+ unicode::formatPercent(nPercent, Application::GetSettings().GetUILanguageTag());
pUserData = new ImpUserData(&sMargin, 0);
m_pCheckLB->SetUserData( MERGE_SINGLE_LINE_PARA, pUserData );
@@ -713,7 +715,8 @@ IMPL_LINK_NOARG(OfaSwAutoFmtOptionsPage, EditHdl)
if(RET_OK == aDlg.Execute())
{
nPercent = (sal_uInt16)aDlg.GetPrcntFld().GetValue();
- sMargin = " " + OUString::number( nPercent ) + "%";
+ sMargin = " " +
+ unicode::formatPercent(nPercent, Application::GetSettings().GetUILanguageTag());
}
}
m_pCheckLB->Invalidate();