summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/pagedesc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/pagedesc.cxx')
-rw-r--r--sw/source/core/layout/pagedesc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/pagedesc.cxx b/sw/source/core/layout/pagedesc.cxx
index ebc0f27a2f3f..9f0a359dd885 100644
--- a/sw/source/core/layout/pagedesc.cxx
+++ b/sw/source/core/layout/pagedesc.cxx
@@ -31,6 +31,7 @@
#include <frmtool.hxx>
#include <doc.hxx>
#include <poolfmt.hrc>
+#include <IDocumentLayoutAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <poolfmt.hxx>
#include <switerator.hxx>
@@ -176,8 +177,7 @@ void SwPageDesc::RegisterChange()
{
return;
}
- SwViewShell* pSh = 0L;
- pDoc->GetEditShell( &pSh );
+ SwViewShell* pSh = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell();
if ( !pSh )
{
return;