diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-12-18 10:23:35 +0000 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-12-19 10:32:33 +0100 |
commit | 2240c2eb36dee04fdf3b8ddd54a482651c4bf5ca (patch) | |
tree | a5429180cc817a3fa67ca938b4b5792f6edb0ea8 | |
parent | 50ea09fe2f80c2c8c499f53bd4e830e596b66eef (diff) |
crashtesting: unknown 'IsContentEmpty' property reloading rtf export
of forum-mso-en4-218597.doc
where the XText is a TextFrame, presumably a problem since:
commit cfd3b14fd4e1ee889dd356523e5cdaa639786d37
CommitDate: Fri Aug 2 10:37:31 2024 +0200
tdf#162295 DOCX import: optimize the check if the header/footer is empty
Change-Id: I14e851aea66ad66024e9a8e38b1d1cdef0bf570c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178717
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 88f0e9a245f4a52ea45a25274a075b48fae7ef9c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178785
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx index aab6be1833a6..efe48d107dfe 100644 --- a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx +++ b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx @@ -3864,7 +3864,8 @@ bool isContentEmpty(uno::Reference<text::XText> const& xText) } bool bContentEmpty{}; - xTextProperties->getPropertyValue("IsContentEmpty") >>= bContentEmpty; + if (xTextProperties->getPropertySetInfo()->hasPropertyByName(u"IsContentEmpty"_ustr)) + xTextProperties->getPropertyValue(u"IsContentEmpty"_ustr) >>= bContentEmpty; return bContentEmpty; } |