diff options
-rw-r--r-- | sw/source/core/view/vprint.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx index 9fe798916ceb..c70574c85933 100644 --- a/sw/source/core/view/vprint.cxx +++ b/sw/source/core/view/vprint.cxx @@ -358,7 +358,8 @@ void SwViewShell::FillPrtDoc( SwDoc *pPrtDoc, const SfxPrinter* pPrt) { SwShellTableCursor* pShellTableCursor = pFESh->GetTableCursor(); - const SwContentNode* pContentNode = pShellTableCursor->GetNode().GetContentNode(); + const SwContentNode *const pContentNode = + pShellTableCursor->Start()->nNode.GetNode().GetContentNode(); const SwContentFrame *const pContentFrame = pContentNode ? pContentNode->getLayoutFrame(GetLayout(), pShellTableCursor->Start()) : nullptr; if( pContentFrame ) { |