summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotext.cxx31
1 files changed, 30 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index ec1c89824ae7..6d6ce3cb866d 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -2254,7 +2254,36 @@ SwXText::convertToTable(
{
try
{
- xPrSet->setPropertyValue(rTableProperty.Name, rTableProperty.Value);
+ static const std::initializer_list<std::u16string_view> vDenylist = {
+ u"BottomBorder",
+ u"CharAutoKerning",
+ u"CharFontName",
+ u"CharFontNameAsian",
+ u"CharFontNameComplex",
+ u"CharHeight",
+ u"CharHeightAsian",
+ u"CharHeightComplex",
+ u"CharInteropGrabBag",
+ u"CharLocale",
+ u"CharLocaleAsian",
+ u"CharLocaleComplex",
+ u"HorizontalBorder",
+ u"LeftBorder",
+ u"ParaAdjust",
+ u"ParaBottomMargin",
+ u"ParaIsHyphenation",
+ u"ParaLineSpacing",
+ u"ParaOrphans",
+ u"ParaTopMargin",
+ u"ParaWidows",
+ u"RightBorder",
+ u"TopBorder",
+ u"VerticalBorder",
+ };
+ if (std::find(vDenylist.begin(), vDenylist.end(), rTableProperty.Name) == vDenylist.end())
+ {
+ xPrSet->setPropertyValue(rTableProperty.Name, rTableProperty.Value);
+ }
}
catch (const uno::Exception&)
{