diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-20 18:00:27 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-01 08:44:44 +0100 |
commit | a382ecb5689ee425e77f830fd81b8696dc90a68b (patch) | |
tree | 65753e67530b21b6ed440c591741a4650a1dfa90 | |
parent | 695a7f10fa9dd55359fbc99b7fdced1c1a7fe025 (diff) |
sw_redlinehide_4a: adapt SwEditShell::GetPaMParAttr()
Change-Id: I97a2081a142fd1f74a5d6be534f094fdc4db45ab
-rw-r--r-- | sw/source/core/edit/edattr.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx index 4f3e26de89b5..53712252e315 100644 --- a/sw/source/core/edit/edattr.cxx +++ b/sw/source/core/edit/edattr.cxx @@ -216,10 +216,16 @@ bool SwEditShell::GetPaMParAttr( SwPaM* pPaM, SfxItemSet& rSet ) const // get the node SwNode* pNd = GetDoc()->GetNodes()[ n ]; + if (GetLayout()->IsHideRedlines() + && pNd->GetRedlineMergeFlag() == SwNode::Merge::Hidden) + { + continue; + } + if( pNd->IsTextNode() ) { // get the node (paragraph) attributes - static_cast<SwContentNode*>(pNd)->GetAttr(*pSet); + sw::GetAttrMerged(*pSet, *pNd->GetTextNode(), GetLayout()); if( pSet != &rSet && aSet.Count() ) { |