[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Fri Apr 22 17:56:28 PDT 2011


 sc/source/filter/inc/xlstring.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5156507911c329cf6bfe3589f0c0510a4bd98aab
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Fri Apr 22 20:53:57 2011 -0400

    Excel only allows strings that are up to 32767 chars long (0x7FFF).
    
    And if we exceed this limit even in one cell, Excel refuses to load
    the whole document.

diff --git a/sc/source/filter/inc/xlstring.hxx b/sc/source/filter/inc/xlstring.hxx
index 2d1ac25..c137220 100644
--- a/sc/source/filter/inc/xlstring.hxx
+++ b/sc/source/filter/inc/xlstring.hxx
@@ -46,7 +46,7 @@ const XclStrFlags EXC_STR_NOHEADER          = 0x0010;   /// Export: Don't write
 // ----------------------------------------------------------------------------
 
 const sal_uInt16 EXC_STR_MAXLEN_8BIT        = 0x00FF;
-const sal_uInt16 EXC_STR_MAXLEN             = 0xFFFF;
+const sal_uInt16 EXC_STR_MAXLEN             = 0x7FFF;
 
 const sal_uInt8 EXC_STRF_16BIT              = 0x01;
 const sal_uInt8 EXC_STRF_FAREAST            = 0x04;


More information about the Libreoffice-commits mailing list