summaryrefslogtreecommitdiff
path: root/svx/source/dialog/svxruler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/svxruler.cxx')
-rw-r--r--svx/source/dialog/svxruler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index e6b57aac5fb7..6b27d7ce722d 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -3257,7 +3257,7 @@ void SvxRuler::MenuSelect(std::string_view ident)
if (ident.empty())
return;
/* Handler of the context menus for switching the unit of measurement */
- SetUnit(vcl::StringToMetric(OUString::fromUtf8(ident)));
+ SetUnit(vcl::EnglishStringToMetric(OUString::fromUtf8(ident)));
}
void SvxRuler::TabMenuSelect(const OString& rIdent)
@@ -3338,7 +3338,7 @@ void SvxRuler::Command( const CommandEvent& rCommandEvent )
for ( sal_uInt16 i = nCount; i; --i )
{
OString sIdent = xMenu->get_id(i - 1);
- FieldUnit eMenuUnit = vcl::StringToMetric(OUString::fromUtf8(sIdent));
+ FieldUnit eMenuUnit = vcl::EnglishStringToMetric(OUString::fromUtf8(sIdent));
xMenu->set_active(sIdent, eMenuUnit == eUnit);
if( bReduceMetric )
{