summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2020-02-04 15:08:14 +0100
committerLászló Németh <nemeth@numbertext.org>2020-02-12 12:53:42 +0100
commit362437b58a1c64be5c6c7a4a6e7a0c16d2eb65a4 (patch)
treeb9ab6c18ff13c600b93fb2a4f00f8389f33ff454
parentc90b6a208d867a00252ad58d8eeab2fd12516157 (diff)
Revert "related tdf#118947 sw tablestyle: no need to avoid numbered para"
This reverts commit 6ed87cc5a4f755f360951550cac836e8967fc6bf. Change-Id: Idd56da3056b60a60228875c644d57099b3d2520f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88455 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
-rw-r--r--sw/source/core/unocore/unotbl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 9a1ff2987786..2053b7502c02 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -1091,7 +1091,8 @@ void SwXCell::setPropertyValue(const OUString& rPropertyName, const uno::Any& aV
}
bool bSet = false;
- SwFormat* pFormatColl = pNd->GetFormatColl();
+ // HACK: don't check styles if numbering/bullets are turned on. Table-styles don't override numbering formatting
+ SwFormat* pFormatColl = pNd->GetNumRule() ? nullptr : pNd->GetFormatColl();
// Manually walk through the parent properties in order to avoid the default properties.
// Table-styles don't override paragraph-style formatting.
// TODO: ?except for fontsize/justification if compat:overrideTableStyleFontSizeAndJustification?