Kaydet (Commit) 4368e050 authored tarafından Michael Stahl's avatar Michael Stahl

xmloff: avoid assertion because AutoCorrect document doesn't ...

... have a proper outline numbering rule.

Change-Id: I7f73176fae6d181ec398c81daf492f4de08e0ae8
üst 8fdb2397
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment