summaryrefslogtreecommitdiff
path: root/sw/source/core/frmedt/fedesc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/frmedt/fedesc.cxx')
-rw-r--r--sw/source/core/frmedt/fedesc.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/frmedt/fedesc.cxx b/sw/source/core/frmedt/fedesc.cxx
index 2177047e19aa..89c0af0b475b 100644
--- a/sw/source/core/frmedt/fedesc.cxx
+++ b/sw/source/core/frmedt/fedesc.cxx
@@ -187,19 +187,20 @@ const SwPageDesc* SwFEShell::GetSelectedPageDescs() const
const SwFrame* pMkFrame, *pPtFrame;
const SwPageDesc* pFnd, *pRetDesc = reinterpret_cast<SwPageDesc*>(sal_IntPtr(-1));
const Point aNulPt;
+ std::pair<Point, bool> const tmp(aNulPt, false);
for(SwPaM& rPaM : GetCursor()->GetRingContainer())
{
if( nullptr != (pCNd = rPaM.GetContentNode() ) &&
- nullptr != ( pPtFrame = pCNd->getLayoutFrame( GetLayout(), &aNulPt, nullptr, false )) )
+ nullptr != (pPtFrame = pCNd->getLayoutFrame(GetLayout(), nullptr, &tmp)))
pPtFrame = pPtFrame->FindPageFrame();
else
pPtFrame = nullptr;
if( rPaM.HasMark() &&
nullptr != (pCNd = rPaM.GetContentNode( false ) ) &&
- nullptr != ( pMkFrame = pCNd->getLayoutFrame( GetLayout(), &aNulPt, nullptr, false )) )
+ nullptr != (pMkFrame = pCNd->getLayoutFrame(GetLayout(), nullptr, &tmp)))
pMkFrame = pMkFrame->FindPageFrame();
else
pMkFrame = pPtFrame;