sc/qa/unit/data/ods/tdf99856_dataValidationTest.ods |binary sc/qa/unit/subsequent_export-test.cxx | 2 +- sc/source/filter/excel/xecontent.cxx | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit b56d1e294d838d4b3d0f237c81325a0d1a1cff83 Author: Justin Luth <justin_l...@sil.org> Date: Fri May 26 08:17:25 2017 +0300 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 <c...@libreoffice.org> Reviewed-by: Justin Luth <justin_l...@sil.org> diff --git a/sc/qa/unit/data/ods/tdf99856_dataValidationTest.ods b/sc/qa/unit/data/ods/tdf99856_dataValidationTest.ods index 4faf626c1c67..b5e036e9b1f8 100644 Binary files a/sc/qa/unit/data/ods/tdf99856_dataValidationTest.ods and b/sc/qa/unit/data/ods/tdf99856_dataValidationTest.ods differ diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx index 56851089e728..253134d5d29f 100644 --- a/sc/qa/unit/subsequent_export-test.cxx +++ b/sc/qa/unit/subsequent_export-test.cxx @@ -470,7 +470,7 @@ void ScExportTest::testTdf99856_dataValidationTest() std::vector<ScTypedStrData> aList; pData->FillSelectionList(aList, ScAddress(0, 1, 1)); CPPUNIT_ASSERT_EQUAL(size_t(18), aList.size()); - CPPUNIT_ASSERT_EQUAL(OUString("18 Missi"), aList[17].GetString()); + CPPUNIT_ASSERT_EQUAL(OUString("18 Missis"), aList[17].GetString()); xDocSh->DoClose(); } 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits