Commits

Anonymous committed 9594519

cbosdo06: Fix for issue 79246

  • Participants
  • Parent commits 7be96a0

Comments (0)

Files changed (1)

File sw/source/filter/ww8/wrtw8nds.cxx

 
 #include <hintids.hxx>
 #include <tools/urlobj.hxx>
+#include <comphelper/processfactory.hxx>
 #include <editeng/boxitem.hxx>
 #include <editeng/cmapitem.hxx>
 #include <editeng/langitem.hxx>
 #include <editeng/brkitem.hxx>
 #include <editeng/frmdiritem.hxx>
 #include <editeng/tstpitem.hxx>
+#include <editeng/unolingu.hxx>
 #include "svl/urihelper.hxx"
 #include <svl/whiter.hxx>
+#include <unotools/localedatawrapper.hxx>
 #include <fmtpdsc.hxx>
 #include <fmtfsize.hxx>
 #include <fmtornt.hxx>
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::i18n;
+using namespace ::com::sun::star::lang;
 using namespace sw::util;
 using namespace sw::types;
 using namespace sw::mark;
     aStr += String::CreateFromInt32(nHeight);
     aStr += '(';
     aStr += rRuby.GetText();
-    aStr.APPEND_CONST_ASC( ");" );
+    aStr.APPEND_CONST_ASC( ")" );
+
+    // The parameter separator depends on the FIB.lid
+    Locale aTempLocale;
+    SvxLanguageToLocale( aTempLocale, m_rWW8Export.pFib->lid );
+    LocaleDataWrapper aLocaleWrapper( ::comphelper::getProcessServiceFactory(), aTempLocale );
+    if ( aLocaleWrapper.getNumDecimalSep().EqualsAscii( "." ) )
+        aStr.APPEND_CONST_ASC( "," );
+    else
+        aStr.APPEND_CONST_ASC( ";" );
+
     m_rWW8Export.OutputField( 0, ww::eEQ, aStr,
             WRITEFIELD_START | WRITEFIELD_CMD_START );
 }