[Libreoffice-commits] core.git: sw/source

László Németh nemeth at numbertext.org
Tue May 22 19:14:35 UTC 2018


 sw/source/core/fields/expfld.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7b6c5e32197c03998a133ec6bc8fd9079f6c0274
Author: László Németh <nemeth at numbertext.org>
Date:   Tue May 22 15:47:51 2018 +0200

    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 at libreoffice.org>
    Reviewed-by: László Németh <nemeth at numbertext.org>

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());


More information about the Libreoffice-commits mailing list