Kaydet (Commit) 644bddc8 authored tarafından Mike Kaganski's avatar Mike Kaganski Kaydeden (comit) Miklos Vajna

tdf#99227 follow-up: synchronize setting serializers

Change-Id: I90afb2ffeaefedd080e48cb94a3e9c0c113a6263
Reviewed-on: https://gerrit.libreoffice.org/31938Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 9f8e640e
......@@ -4269,8 +4269,6 @@ void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode* pGrfNode, const Size
CharGrabBag(*pGrabBag);
}
// tdf#99227: to be sure that we write to the right stream
m_rExport.SdrExporter().setSerializer(m_pSerializer);
m_rExport.SdrExporter().startDMLAnchorInline(pFrameFormat, rSize);
// picture description (used for pic:cNvPr later too)
......
......@@ -603,11 +603,14 @@ void DocxExport::WriteFootnotesEndnotes()
// switch the serializer to redirect the output to word/footnotes.xml
m_pAttrOutput->SetSerializer( pFootnotesFS );
// tdf#99227
m_pSdrExport->setSerializer( pFootnotesFS );
// do the work
m_pAttrOutput->FootnotesEndnotes( true );
// switch the serializer back
m_pSdrExport->setSerializer( m_pDocumentFS );
m_pAttrOutput->SetSerializer( m_pDocumentFS );
}
......@@ -624,11 +627,14 @@ void DocxExport::WriteFootnotesEndnotes()
// switch the serializer to redirect the output to word/endnotes.xml
m_pAttrOutput->SetSerializer( pEndnotesFS );
// tdf#99227
m_pSdrExport->setSerializer( pEndnotesFS );
// do the work
m_pAttrOutput->FootnotesEndnotes( false );
// switch the serializer back
m_pSdrExport->setSerializer( m_pDocumentFS );
m_pAttrOutput->SetSerializer( m_pDocumentFS );
}
}
......
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