[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - svl/source

Laurent Balland-Poirier laurent.balland-poirier at laposte.net
Mon Nov 23 06:40:28 PST 2015


 svl/source/numbers/zformat.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit bad71e69bae0dbfbf4bfabcd5e53e0feafd65d90
Author: Laurent Balland-Poirier <laurent.balland-poirier at laposte.net>
Date:   Thu Nov 19 22:49:59 2015 +0100

    tdf#95677 Force sign to exponent for Excel export
    
    Change-Id: I7896d1d064cd92fd45a6b32ac64f534f68213169
    Reviewed-on: https://gerrit.libreoffice.org/20064
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>
    (cherry picked from commit 96ff6372e15fa17211650ec6f0da13771a572a42)
    Reviewed-on: https://gerrit.libreoffice.org/20126

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 3b2638d..e0ea882 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -4846,6 +4846,11 @@ OUString SvNumberformat::GetMappedFormatstring( const NfKeywordTable& rKeywords,
                     case NF_SYMBOLTYPE_THSEP :
                         aStr.append( rLocWrp.getNumThousandSep() );
                         break;
+                    case NF_SYMBOLTYPE_EXP :
+                        // tdf#95677: Excel does not support exponent without sign
+                        aStr.append( rKeywords[NF_KEY_E] );
+                        aStr.append( "+" );
+                        break;
                     case NF_SYMBOLTYPE_DATESEP :
                         aStr.append( rLocWrp.getDateSep() );
                         break;


More information about the Libreoffice-commits mailing list