sw/qa/extras/globalfilter/globalfilter.cxx | 5 +---- sw/source/filter/ww8/wrtw8nds.cxx | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-)
New commits: commit 5a2657aed17d5163acbfec48193c968f6707fbb0 Author: Michael Stahl <michael.st...@cib.de> AuthorDate: Mon Dec 23 13:00:19 2019 +0100 Commit: Xisco FaulĂ <xiscofa...@libreoffice.org> CommitDate: Thu Dec 26 10:44:03 2019 +0100 tdf#129514 sw: DOCX export: write separator for CH_TXT_ATR_FORMELEMENT ... fieldmarks; the input DOC file has no separators, like: ^S FORMCHECKBOX ^A^U but adding the separator doesn't appear to hurt and the DocxAttributeOutput gets confused by the lack of it and puts the run that should be after the field into the field. (regression from 94e0b8407b02d76b27324b8b08012eb024aca9e9) Change-Id: Ibeb1bb2ad3a4ed9c0ac9c3e90cc193debf7ad5db Reviewed-on: https://gerrit.libreoffice.org/85753 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@cib.de> (cherry picked from commit b03fefcc4dbdfee3b9eeb5fa0e586dd12ddcd3d2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85758 Reviewed-by: Xisco FaulĂ <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/globalfilter/globalfilter.cxx b/sw/qa/extras/globalfilter/globalfilter.cxx index da84bc21f494..f0d61355ea86 100644 --- a/sw/qa/extras/globalfilter/globalfilter.cxx +++ b/sw/qa/extras/globalfilter/globalfilter.cxx @@ -1230,10 +1230,7 @@ void Test::testCheckBoxFormField() IDocumentMarkAccess* pMarkAccess = pDoc->getIDocumentMarkAccess(); // We have two check box form fields - if(rFilterName == "Office Open XML Text") - CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(4), pMarkAccess->getAllMarksCount()); - else - CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(2), pMarkAccess->getAllMarksCount()); + CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), sal_Int32(2), pMarkAccess->getAllMarksCount()); int nIndex = 0; for(auto aIter = pMarkAccess->getAllMarksBegin(); aIter != pMarkAccess->getAllMarksEnd(); ++aIter) diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index 89de28bf5182..3df5950cff84 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -2444,7 +2444,9 @@ void MSWordExportBase::OutputTextNode( SwTextNode& rNode ) FieldFlags::Start | FieldFlags::CmdStart ); if ( isDropdownOrCheckbox ) WriteFormData( *pFieldmark ); - OutputField( nullptr, lcl_getFieldId( pFieldmark ), OUString(), FieldFlags::Close ); + // tdf#129514 need CmdEnd for docx + OutputField(nullptr, lcl_getFieldId(pFieldmark), OUString(), + FieldFlags::CmdEnd | FieldFlags::Close); if ( isDropdownOrCheckbox ) AppendBookmark( pFieldmark->GetName() ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits