summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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&)
{