diff options
-rw-r--r-- | sw/source/filter/xml/xmlexp.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx index 7d6d88940005..428b90ed6bc9 100644 --- a/sw/source/filter/xml/xmlexp.cxx +++ b/sw/source/filter/xml/xmlexp.cxx @@ -126,6 +126,11 @@ ErrCode SwXMLExport::exportDoc( enum XMLTokenEnum eClass ) SwDoc *pDoc = getDoc(); + // Make sure the layout is available to have more stability in the output + // markup. + if (SwViewShell* pViewShell = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell()) + pViewShell->CalcLayout(); + if( getExportFlags() & (SvXMLExportFlags::FONTDECLS|SvXMLExportFlags::STYLES| SvXMLExportFlags::MASTERSTYLES|SvXMLExportFlags::CONTENT)) { |