summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/filter/ww8/rtfexportfilter.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/rtfexportfilter.cxx b/sw/source/filter/ww8/rtfexportfilter.cxx
index 7c974eeecfa1..49329f86098d 100644
--- a/sw/source/filter/ww8/rtfexportfilter.cxx
+++ b/sw/source/filter/ww8/rtfexportfilter.cxx
@@ -31,6 +31,7 @@
#include <rtfexport.hxx>
#include <docsh.hxx>
+#include <editsh.hxx>
#include <unotxdoc.hxx>
#include <comphelper/mediadescriptor.hxx>
@@ -72,6 +73,12 @@ sal_Bool RtfExportFilter::filter( const uno::Sequence< beans::PropertyValue >& a
return sal_False;
}
+ // fdo#37161 - update layout (if present), for SwWriteTable
+ ViewShell* pViewShell = NULL;
+ pDoc->GetEditShell(&pViewShell);
+ if (pViewShell != NULL)
+ pViewShell->CalcLayout();
+
// get SwPaM*
// we get SwPaM for the entire document; copy&paste is handled internally, not via UNO
SwPaM aPam( pDoc->GetNodes().GetEndOfContent() );