diff options
Diffstat (limited to 'writerfilter/source/dmapper/NumberingManager.cxx')
-rw-r--r-- | writerfilter/source/dmapper/NumberingManager.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx index 8a17e6ead556..713313fbba74 100644 --- a/writerfilter/source/dmapper/NumberingManager.cxx +++ b/writerfilter/source/dmapper/NumberingManager.cxx @@ -400,6 +400,7 @@ const OUString& AbstractListDef::MapListId(OUString const& rId) ListDef::ListDef( ) : AbstractListDef( ) { + m_nDefaultParentLevels = WW_OUTLINE_MAX + 1; } ListDef::~ListDef( ) @@ -572,6 +573,10 @@ void ListDef::CreateNumberingRules( DomainMapper& rDMapper, xOutlineRules->replaceByIndex(nLevel, uno::makeAny(comphelper::containerToSequence(aLvlProps))); } + // first level with custom pStyle + if ( WW_OUTLINE_MAX + 1 == m_nDefaultParentLevels && pAbsLevel->GetParaStyle( ) ) + m_nDefaultParentLevels = nLevel; + nLevel++; } |