summaryrefslogtreecommitdiff
path: root/sw/qa/core/macros-test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/core/macros-test.cxx')
-rw-r--r--sw/qa/core/macros-test.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/core/macros-test.cxx b/sw/qa/core/macros-test.cxx
index 15a8085f6caa..e2194e59f616 100644
--- a/sw/qa/core/macros-test.cxx
+++ b/sw/qa/core/macros-test.cxx
@@ -42,6 +42,7 @@
#include <unotools/tempfile.hxx>
#include <doc.hxx>
+#include <IDocumentLayoutAccess.hxx>
#include "docsh.hxx"
typedef tools::SvRef<SwDocShell> SwDocShellRef;
@@ -166,7 +167,7 @@ void SwMacrosTest::testFdo55289()
SwDocShellRef pDocShell = new SwDocShell(pDoc, SFX_CREATE_MODE_EMBEDDED);
// this needs to run with no layout to tickle the bugs in the special
// cases in SwXShape re-anchoring
- assert(!pDoc->GetCurrentLayout());
+ assert(!pDoc->getIDocumentLayoutAccess().GetCurrentLayout());
uno::Reference<frame::XModel> const xModel(pDocShell->GetModel());
uno::Reference<drawing::XDrawPageSupplier> const xDPS(xModel, UNO_QUERY);