diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-28 15:42:26 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-28 15:48:18 +0100 |
commit | 4368e050406ddfa09a4b42a8cecbfd9d662aaaab (patch) | |
tree | 215ec9c1edcde41725f5fdd459b36cf095229c1f /xmloff | |
parent | 8fdb23973521125892d4a99dc4e33463680a0047 (diff) |
xmloff: avoid assertion because AutoCorrect document doesn't ...
... have a proper outline numbering rule.
Change-Id: I7f73176fae6d181ec398c81daf492f4de08e0ae8
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index efc6ca9ac3a2..9d35a13a5e98 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -899,10 +899,12 @@ XMLTextImportHelper::XMLTextImportHelper( Reference< XChapterNumberingSupplier > xCNSupplier( rModel, UNO_QUERY ); - if( xCNSupplier.is() ) + if (xCNSupplier.is()) { + // note: m_xChapterNumbering is accessed to import some fields m_pImpl->m_xChapterNumbering = xCNSupplier->getChapterNumberingRules(); - if (m_pImpl->m_xChapterNumbering.is()) + // the AutoCorrect document doesn't have a proper outline numbering + if (!IsBlockMode() && m_pImpl->m_xChapterNumbering.is()) { Reference< XPropertySet > const xNumRuleProps( m_pImpl->m_xChapterNumbering, UNO_QUERY); |