summaryrefslogtreecommitdiff
path: root/sw/source/core/layout
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-05-29 14:09:08 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-06-08 21:51:33 +0200
commit0356b46e3a37017134fdcf4b7300d1496de44573 (patch)
tree73f708d64ce944f678f17181422fa92b52ae7089 /sw/source/core/layout
parentf579109b9253a70751920e75af9000deafc23cb1 (diff)
sw_redlinehide: use WriterMultiListener to connect SwTextFrame
... with multiple SwTextNodes in CheckParaRedlineMerge() Change-Id: I57402ca7d2210fc30015b9a7e2e05216e0b8a8eb
Diffstat (limited to 'sw/source/core/layout')
-rw-r--r--sw/source/core/layout/ssfrm.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx
index a0b035ebaee7..b2fd7113c0b4 100644
--- a/sw/source/core/layout/ssfrm.cxx
+++ b/sw/source/core/layout/ssfrm.cxx
@@ -438,7 +438,10 @@ void SwTextFrame::RegisterToNode(SwTextNode & rNode)
{
assert(&rNode != GetRegisteredIn());
m_pMergedPara = sw::CheckParaRedlineMerge(*this, rNode);
- rNode.Add( this );
+ if (!m_pMergedPara)
+ {
+ rNode.Add(this);
+ }
}
void SwLayoutFrame::DestroyImpl()