summaryrefslogtreecommitdiffstats
path: root/sw/source/core/frmedt/feshview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/frmedt/feshview.cxx')
-rw-r--r--sw/source/core/frmedt/feshview.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index 30543a47b605..3b272f4ef007 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1808,7 +1808,8 @@ bool SwFEShell::ImpEndCreate()
// characterbinding not allowed in readonly-content
if( !aPos.nNode.GetNode().IsProtect() )
{
- pAnch = aPos.nNode.GetNode().GetContentNode()->getLayoutFrame( GetLayout(), &aPoint, &aPos );
+ std::pair<Point, bool> const tmp(aPoint, true);
+ pAnch = aPos.nNode.GetNode().GetContentNode()->getLayoutFrame(GetLayout(), &aPos, &tmp);
SwRect aTmp;
pAnch->GetCharRect( aTmp, aPos );
@@ -1859,7 +1860,8 @@ bool SwFEShell::ImpEndCreate()
}
SwContentNode* pCNode = aPos.nNode.GetNode().GetContentNode();
- pAnch = pCNode ? pCNode->getLayoutFrame( GetLayout(), &aPoint, nullptr, false ) : nullptr;
+ std::pair<Point, bool> const tmp(aPoint, false);
+ pAnch = pCNode ? pCNode->getLayoutFrame(GetLayout(), nullptr, &tmp) : nullptr;
if (!pAnch)
{
// Hidden content. Anchor to the page instead