summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/docxexportfilter.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2012-01-03 12:43:19 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2012-01-03 12:43:37 +0100
commit867eed75e6f3e742ac383b65659cc7e98fa1c83c (patch)
tree0881a9b51ff84a02eba38ececb2b6b217201cf90 /sw/source/filter/ww8/docxexportfilter.cxx
parent199d220580fda3c4a4ad94a74eca374301377619 (diff)
Related: fdo#37161 update layout (if present) before DOCX export
Diffstat (limited to 'sw/source/filter/ww8/docxexportfilter.cxx')
-rw-r--r--sw/source/filter/ww8/docxexportfilter.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxexportfilter.cxx b/sw/source/filter/ww8/docxexportfilter.cxx
index 38faf1c41020..a780c5c3457f 100644
--- a/sw/source/filter/ww8/docxexportfilter.cxx
+++ b/sw/source/filter/ww8/docxexportfilter.cxx
@@ -32,6 +32,7 @@
#include "docxexport.hxx"
#include <docsh.hxx>
+#include <editsh.hxx>
#include <pam.hxx>
#include <unotxdoc.hxx>
@@ -62,6 +63,12 @@ bool DocxExportFilter::exportDocument()
if ( !pDoc )
return false;
+ // update layout (if present), for SwWriteTable
+ ViewShell* pViewShell = NULL;
+ pDoc->GetEditShell(&pViewShell);
+ if (pViewShell != NULL)
+ pViewShell->CalcLayout();
+
// get SwPaM*
// FIXME so far we get SwPaM for the entire document; probably we should
// be able to output just the selection as well - though no idea how to