summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2015-11-19 22:49:59 +0100
committerEike Rathke <erack@redhat.com>2015-11-23 14:39:56 +0000
commitbad71e69bae0dbfbf4bfabcd5e53e0feafd65d90 (patch)
tree99b81783b166a8712ccbc81e77aed6491ced913f /svl/source
parent4f79bf9e3278fae122cda6b01bf512cf4a665a70 (diff)
tdf#95677 Force sign to exponent for Excel export
Change-Id: I7896d1d064cd92fd45a6b32ac64f534f68213169 Reviewed-on: https://gerrit.libreoffice.org/20064 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 96ff6372e15fa17211650ec6f0da13771a572a42) Reviewed-on: https://gerrit.libreoffice.org/20126
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/numbers/zformat.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 3b2638d26c88..e0ea8821b829 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;