summaryrefslogtreecommitdiffstats
path: root/sw/source/core/frmedt/fefly1.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-10 13:43:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-14 12:03:26 +0200
commitedc5240a96f003b9aec8f8d2ce92db39ad603fd7 (patch)
treeda0faa62c787e15d7368a5dbf48e723c96652e2c /sw/source/core/frmedt/fefly1.cxx
parentrename SwPaM::GetNode to GetPointNode/GetContentNode (diff)
downloadcore-edc5240a96f003b9aec8f8d2ce92db39ad603fd7.tar.gz
core-edc5240a96f003b9aec8f8d2ce92db39ad603fd7.zip
rename SwPaM::GetContentNode to GetPointContentNode/GetMarkContentNode
Using a parameter to select point/mark makes the code much harder to read Change-Id: Ic24098a6045ff2262d4c808228ded7bf8206fe8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138085 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/frmedt/fefly1.cxx')
-rw-r--r--sw/source/core/frmedt/fefly1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index f55dcc1aad53..6ade7c6bb556 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -972,7 +972,7 @@ void SwFEShell::InsertDrawObj( SdrObject& rDrawObj,
SwCursorMoveState aState( CursorMoveState::SetOnlyText );
Point aTmpPt( rInsertPosition );
GetLayout()->GetModelPositionForViewPoint( aPam.GetPoint(), aTmpPt, &aState );
- const SwFrame* pFrame = aPam.GetContentNode()->getLayoutFrame(GetLayout(), nullptr, nullptr);
+ const SwFrame* pFrame = aPam.GetPointContentNode()->getLayoutFrame(GetLayout(), nullptr, nullptr);
const Point aRelPos( rInsertPosition.X() - pFrame->getFrameArea().Left(),
rInsertPosition.Y() - pFrame->getFrameArea().Top() );
rDrawObj.SetRelativePos( aRelPos );