Kaydet (Commit) 7878bcf5 authored tarafından Varun Dhall's avatar Varun Dhall Kaydeden (comit) Michael Stahl

xmloff: Updated XMLTextListBlockContext to insert elements before NumRules

Change-Id: If81d55aef96af4b764b62dc53a1986b5f0739d1e
Reviewed-on: https://gerrit.libreoffice.org/39698Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 7d876e48
...@@ -125,6 +125,9 @@ XMLTextListBlockContext::XMLTextListBlockContext( ...@@ -125,6 +125,9 @@ XMLTextListBlockContext::XMLTextListBlockContext(
} }
} }
// Remember this list block.
mrTxtImport.GetTextListHelper().PushListContext( this );
mxNumRules = XMLTextListsHelper::MakeNumRule(GetImport(), mxNumRules, mxNumRules = XMLTextListsHelper::MakeNumRule(GetImport(), mxNumRules,
sParentListStyleName, msListStyleName, sParentListStyleName, msListStyleName,
mnLevel, &mbRestartNumbering, &mbSetDefaults ); mnLevel, &mbRestartNumbering, &mbSetDefaults );
...@@ -224,9 +227,6 @@ XMLTextListBlockContext::XMLTextListBlockContext( ...@@ -224,9 +227,6 @@ XMLTextListBlockContext::XMLTextListBlockContext(
sListStyleDefaultListId ); sListStyleDefaultListId );
} }
} }
// Remember this list block.
mrTxtImport.GetTextListHelper().PushListContext( this );
} }
XMLTextListBlockContext::~XMLTextListBlockContext() XMLTextListBlockContext::~XMLTextListBlockContext()
......
...@@ -451,7 +451,7 @@ XMLTextListsHelper::MakeNumRule( ...@@ -451,7 +451,7 @@ XMLTextListsHelper::MakeNumRule(
xNumRules = xNumRules =
SvxXMLListStyleContext::CreateNumRule( i_rImport.GetModel() ); SvxXMLListStyleContext::CreateNumRule( i_rImport.GetModel() );
assert(xNumRules.is()); SAL_INFO_IF(xNumRules.is(), "xmloff.core", "cannot create numrules");
if ( !xNumRules.is() ) if ( !xNumRules.is() )
return xNumRules; return xNumRules;
......
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