summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2021-07-10 10:39:03 +0200
committerJustin Luth <justin_luth@sil.org>2021-07-10 19:48:18 +0200
commit4450137924eb8626a57283e1ab4f4ad62dd2d595 (patch)
treef03962600960bb74af8f9706a5aef775c125af38
parentdabb1dc347071abb7d6a708930f5fbdb8c68c72a (diff)
related tdf141964 writerfilter CN: drop obsolete exception
First of all, the presence of an outlineLevel is not equivalent to being part of Chapter Numbering. Plus even if it is a chapter numbering style it should be fine to write "Outline" as the numStyleName after all of the prior rework of numbering import. So lets not keep unnecessary exceptions. Change-Id: I89149e199eddacefd0971c805e03d3ad66a1672b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118706 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index af4eefc0d54f..57df581ac9c8 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -912,8 +912,7 @@ void StyleSheetTable::ApplyNumberingStyleNameToParaStyles()
if ( pEntry->nStyleTypeCode == STYLE_TYPE_PARA && (pStyleSheetProperties = dynamic_cast<StyleSheetPropertyMap*>(pEntry->pProperties.get())) )
{
// ListId 0 means turn off numbering - to cancel inheritance - so make sure that can be set.
- // Ignore the special "chapter numbering" outline styles as they are handled internally.
- if ( pStyleSheetProperties->GetListId() > -1 && pStyleSheetProperties->GetOutlineLevel() == -1 )
+ if (pStyleSheetProperties->GetListId() > -1)
{
uno::Reference< style::XStyle > xStyle;
xParaStyles->getByName( ConvertStyleName(pEntry->sStyleName) ) >>= xStyle;