summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-09-15 20:14:23 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-09-16 08:19:40 +0200
commit9b2327ce994771208a07479ca2aa13c63a124c98 (patch)
tree81a891343a784ba9cbe7825bd487a52d3a5a5c95 /sw/source
parenteab9015d1e17950ee5a49f93a6ad40e7726f5050 (diff)
CppunitTest_sw_uiwriter2: use more SwParaPortion::dumpAsXml()
See commit feeed3e762cf077fbd9cf48f82e949365108ccc1 (CppunitTest_sw_layoutwriter: avoid some a11y-based layout testing, 2022-04-07) for motivation. Change-Id: I617d9ea2a46a69d9c214a191e23dbe84c6dd36be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140030 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/xmldump.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index fb45c0920f17..c760303bd2d3 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -196,11 +196,6 @@ class XmlPortionDumper:public SwPortionHandler
if (nWidth > 0)
(void)xmlTextWriterWriteFormatAttribute(m_Writer, BAD_CAST("nWidth"), "%i",
static_cast<int>(nWidth));
- if (nLength > TextFrameIndex(0))
- (void)xmlTextWriterWriteAttribute(
- m_Writer, BAD_CAST("Portion"),
- BAD_CAST(m_rText.copy(sal_Int32(m_Ofs), sal_Int32(nLength)).toUtf8().getStr()));
-
(void)xmlTextWriterEndElement(m_Writer);
m_aLine += m_rText.subView(sal_Int32(m_Ofs), sal_Int32(nLength));
m_Ofs += nLength;