summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2012-01-03 12:22:45 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2012-01-03 12:24:19 +0100
commit83fbebfea32b27cd722466607aa978244ac53575 (patch)
tree48dd3d0b99f1a36e5dc7ae23f180af9d2b833b1e
parent08f62fb29d448197e3353acd7fa8923cbd26939a (diff)
fdo#37161 RTF: update layout (if present) before export
-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() );