summaryrefslogtreecommitdiff
path: root/sw/qa/extras/globalfilter
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-12-23 13:00:19 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2019-12-26 10:44:03 +0100
commit5a2657aed17d5163acbfec48193c968f6707fbb0 (patch)
treed13e40a64c3c7e1f3c1b553c338624f6d2099329 /sw/qa/extras/globalfilter
parent1ef21ea98b46267d82da017ab2fec8e05d8e638b (diff)
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.stahl@cib.de> (cherry picked from commit b03fefcc4dbdfee3b9eeb5fa0e586dd12ddcd3d2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85758 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/globalfilter')
-rw-r--r--sw/qa/extras/globalfilter/globalfilter.cxx5
1 files changed, 1 insertions, 4 deletions
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)