summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-04-12 10:55:23 +0200
committerMiklos Vajna <vmiklos@collabora.com>2023-04-12 11:48:47 +0200
commit8f9523b3ef464731afed61a253c958644fca6335 (patch)
tree34d1ccc8440200b01ee8d01879b53849109c4f2f
parente8de03a18ed8684ed94d93b09aa1662ba799e877 (diff)
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 <vmiklos@collabora.com> Tested-by: Jenkins
-rw-r--r--sw/source/core/unocore/unotext.cxx8
1 files changed, 7 insertions, 1 deletions
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&)
{