From 858b143b5f71be2ac526260d57e554f7a54ebe9c Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 20 Nov 2018 18:00:27 +0100 Subject: sw_redlinehide_4a: adapt SwEditShell::GetPaMParAttr() Change-Id: I97a2081a142fd1f74a5d6be534f094fdc4db45ab --- sw/source/core/edit/edattr.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(pNd)->GetAttr(*pSet); + sw::GetAttrMerged(*pSet, *pNd->GetTextNode(), GetLayout()); if( pSet != &rSet && aSet.Count() ) { -- cgit v1.2.3