summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2018-05-22 15:47:51 +0200
committerLászló Németh <nemeth@numbertext.org>2018-05-22 21:14:12 +0200
commit7b6c5e32197c03998a133ec6bc8fd9079f6c0274 (patch)
treedc1845743ef383be9d9e2687e873ecc2cb3e1c72 /sw
parentba9b525ec1ecbe3e4972a46766930253504becfb (diff)
tdf#117171 support localized sequence numbering styles
for example, illustration and table numbering in ordinal and cardinal number names and ordinal indicators. Change-Id: I1911d40aba1b18230a49b2e968af2753d1eeb6f3 Reviewed-on: https://gerrit.libreoffice.org/54672 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/fields/expfld.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/expfld.cxx b/sw/source/core/fields/expfld.cxx
index b01aa8fd31e5..6ac0df0f4a47 100644
--- a/sw/source/core/fields/expfld.cxx
+++ b/sw/source/core/fields/expfld.cxx
@@ -863,7 +863,7 @@ void SwSetExpField::SetValue( const double& rAny )
SwValueField::SetValue(rAny);
if( IsSequenceField() )
- sExpand = FormatNumber( GetValue(), static_cast<SvxNumType>(GetFormat()) );
+ sExpand = FormatNumber( GetValue(), static_cast<SvxNumType>(GetFormat()), GetLanguage() );
else
sExpand = static_cast<SwValueFieldType*>(GetTyp())->ExpandValue( rAny,
GetFormat(), GetLanguage());