summaryrefslogtreecommitdiffstats
path: root/sw/source/core/table/swnewtable.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-10 11:47:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-14 12:02:57 +0200
commitab0d9af99b2dc69fa8e7463fb33ca28cbccf484d (patch)
treeadd60bc9fa4c6b6016ab487e15d472355841b8a9 /sw/source/core/table/swnewtable.cxx
parentuse more SwPosition::GetNode instead of nNode (diff)
downloadcore-ab0d9af99b2dc69fa8e7463fb33ca28cbccf484d.tar.gz
core-ab0d9af99b2dc69fa8e7463fb33ca28cbccf484d.zip
rename SwPaM::GetNode to GetPointNode/GetContentNode
Using a parameter to select point/mark makes the code much harder to read Change-Id: I4ac8b904ac423e2b99253b7e4b6adc72c8afe1a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138083 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/table/swnewtable.cxx')
-rw-r--r--sw/source/core/table/swnewtable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/table/swnewtable.cxx b/sw/source/core/table/swnewtable.cxx
index 35fa006e903d..69f339f074d1 100644
--- a/sw/source/core/table/swnewtable.cxx
+++ b/sw/source/core/table/swnewtable.cxx
@@ -949,13 +949,13 @@ bool SwTable::PrepareMerge( const SwPaM& rPam, SwSelBoxes& rBoxes,
{
SwPaM aPam( *pBox->GetSttNd(), 0 );
aPam.GetPoint()->nNode++;
- SwTextNode* pNd = aPam.GetNode().GetTextNode();
+ SwTextNode* pNd = aPam.GetPointNode().GetTextNode();
while( pNd )
{
pNd->SetCountedInList( false );
aPam.GetPoint()->nNode++;
- pNd = aPam.GetNode().GetTextNode();
+ pNd = aPam.GetPointNode().GetTextNode();
}
}
}