sw/source/core/unocore/unotext.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 8f9523b3ef464731afed61a253c958644fca6335 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Apr 12 10:55:23 2023 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Apr 12 11:48:47 2023 +0200 sw floattable: don't try to set left margin as cell property Cell UNO objects don't have such a property, and this generates a warning on importing sw/qa/core/layout/data/floattable.docx, silence it. Change-Id: I573c6f95edb8577e70518a9c21119a0e32b6a411 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150271 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index c698d2a6042a..ec1c89824ae7 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -2139,7 +2139,13 @@ lcl_ApplyCellProperties( { try { - xCellPS->setPropertyValue(rName, rValue); + static const std::initializer_list<std::u16string_view> vDenylist = { + u"LeftMargin", + }; + if (std::find(vDenylist.begin(), vDenylist.end(), rName) == vDenylist.end()) + { + xCellPS->setPropertyValue(rName, rValue); + } } catch (const uno::Exception&) {