summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-10-30 11:11:02 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-10 19:47:00 +0100
commitba42b3d8f9fc79e8686ad360172fba36386fcd0d (patch)
tree3f584183d285201cd8832bbc7e14e5337828fcbc /sw
parenta497796a21a4013ea975b440e572ae9712447aa3 (diff)
sw_redlinehide_3: adapt SwEditShell::GetPaMAttr/GetPaMTextFormatColl
These are Num-relevant. Change-Id: Ic07dc2574590713357aec484051f52bfe792eabb
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/edit/edattr.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx
index 85c672e0e542..197b22e821bb 100644
--- a/sw/source/core/edit/edattr.cxx
+++ b/sw/source/core/edit/edattr.cxx
@@ -79,7 +79,8 @@ bool SwEditShell::GetPaMAttr( SwPaM* pPaM, SfxItemSet& rSet,
// the attributes to get are those from the numbering format.
if (rCurrentPaM.IsInFrontOfLabel())
{
- SwTextNode * pTextNd = rCurrentPaM.GetPoint()->nNode.GetNode().GetTextNode();
+ SwTextNode const*const pTextNd = sw::GetParaPropsNode(*GetLayout(),
+ rCurrentPaM.GetPoint()->nNode);
if (pTextNd)
{
@@ -268,8 +269,9 @@ SwTextFormatColl* SwEditShell::GetPaMTextFormatColl( SwPaM* pPaM ) const
if( pNd->IsTextNode() )
{
+ SwTextNode *const pTextNode(sw::GetParaPropsNode(*GetLayout(), SwNodeIndex(*pNd)));
// if it's a text node get its named paragraph format
- SwTextFormatColl* pFormat = pNd->GetTextNode()->GetTextColl();
+ SwTextFormatColl *const pFormat = pTextNode->GetTextColl();
// if the paragraph format exist stop here and return it
if( pFormat != nullptr )