summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/rtfexportfilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/ww8/rtfexportfilter.cxx')
-rw-r--r--sw/source/filter/ww8/rtfexportfilter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/rtfexportfilter.cxx b/sw/source/filter/ww8/rtfexportfilter.cxx
index a683e279f58e..7774a2267e85 100644
--- a/sw/source/filter/ww8/rtfexportfilter.cxx
+++ b/sw/source/filter/ww8/rtfexportfilter.cxx
@@ -21,6 +21,7 @@
#include <rtfexport.hxx>
#include <docsh.hxx>
+#include <IDocumentLayoutAccess.hxx>
#include <editsh.hxx>
#include <unotxdoc.hxx>
@@ -60,8 +61,7 @@ sal_Bool RtfExportFilter::filter(const uno::Sequence< beans::PropertyValue >& aD
}
// fdo#37161 - update layout (if present), for SwWriteTable
- SwViewShell* pViewShell = NULL;
- pDoc->GetEditShell(&pViewShell);
+ SwViewShell* pViewShell = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell();
if (pViewShell != NULL)
pViewShell->CalcLayout();