sw/source/filter/ww8/rtfexportfilter.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 83fbebfea32b27cd722466607aa978244ac53575
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Tue Jan 3 12:22:45 2012 +0100

    fdo#37161 RTF: update layout (if present) before export

diff --git a/sw/source/filter/ww8/rtfexportfilter.cxx 
b/sw/source/filter/ww8/rtfexportfilter.cxx
index 7c974ee..49329f8 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() );
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to