summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-11-28 15:42:26 +0100
committerMichael Stahl <mstahl@redhat.com>2014-11-28 15:48:18 +0100
commit4368e050406ddfa09a4b42a8cecbfd9d662aaaab (patch)
tree215ec9c1edcde41725f5fdd459b36cf095229c1f /xmloff
parent8fdb23973521125892d4a99dc4e33463680a0047 (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.cxx6
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);