summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/flypos.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/flypos.cxx')
-rw-r--r--sw/source/core/layout/flypos.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/flypos.cxx b/sw/source/core/layout/flypos.cxx
index 87f215cf9013..2857b14a276d 100644
--- a/sw/source/core/layout/flypos.cxx
+++ b/sw/source/core/layout/flypos.cxx
@@ -18,6 +18,7 @@
*/
#include "doc.hxx"
+#include <IDocumentLayoutAccess.hxx>
#include <docary.hxx>
#include "dcontact.hxx"
#include "flyfrm.hxx"
@@ -45,7 +46,7 @@ SwPosFlyFrm::SwPosFlyFrm( const SwNodeIndex& rIdx, const SwFrmFmt* pFmt,
{
pNdIdx = new SwNodeIndex( rIdx );
}
- else if( pFmt->GetDoc()->GetCurrentViewShell() )
+ else if( pFmt->GetDoc()->getIDocumentLayoutAccess().GetCurrentViewShell() )
{
if( RES_FLYFRMFMT == pFmt->Which() )
{