summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xecontent.cxx
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2017-05-26 08:17:25 +0300
committerJustin Luth <justin_luth@sil.org>2017-05-26 08:14:10 +0200
commitb56d1e294d838d4b3d0f237c81325a0d1a1cff83 (patch)
tree2d1e10f40ec29014fbd41b09eaac1b95dd935ba7 /sc/source/filter/excel/xecontent.cxx
parent6ae3d9d18d0069c9921a29bbe313e65084cd4a93 (diff)
xlsx export: limit dataValidation list to 255 chars, not 254
related to tdf#99856 commit b139bf96574010f317c543bc45d23dd6a5810621 which had a logic failure, caused by investigating too many alternative ways of fixing. Change-Id: I6ffce8c0bc10c992804cb5d8c75441da1a4c3d37 Reviewed-on: https://gerrit.libreoffice.org/38051 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'sc/source/filter/excel/xecontent.cxx')
-rw-r--r--sc/source/filter/excel/xecontent.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 4c5907c26f93..706dcb67b9ec 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -1675,7 +1675,7 @@ XclExpDV::XclExpDV( const XclExpRoot& rRoot, sal_uLong nScHandle ) :
sal_uInt32 nLen = sFormulaBuf.getLength();
if( nLen > 256 ) // 255 + beginning quote mark
{
- nLen = 255;
+ nLen = 256;
if( sFormulaBuf[nLen - 1] == ',' )
--nLen;
sFormulaBuf = sFormulaBuf.copy(0, nLen);