summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/ssfrm.cxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-05-07 14:44:21 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-06-08 21:51:26 +0200
commit44b64eeec146a733d0e254ac7a5b295e4390815d (patch)
tree68919a2b0f1242c59ffb4d52397783b1e978f153 /sw/source/core/layout/ssfrm.cxx
parent7d1e3abe1e7378f0fb8d2881f3a075de1b9dc7cf (diff)
sw_redlinehide: move SwContentFrame::RegisterToNode to SwTextFrame
It is only called on SwTextFrame, since other SwContentFrame do not register at SwTextNode but their own node type. Change-Id: I2bbb4571810a407c33f526f6df526727bde67b65
Diffstat (limited to 'sw/source/core/layout/ssfrm.cxx')
-rw-r--r--sw/source/core/layout/ssfrm.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx
index 8fceca4e8bd9..9d9aeee39604 100644
--- a/sw/source/core/layout/ssfrm.cxx
+++ b/sw/source/core/layout/ssfrm.cxx
@@ -434,8 +434,9 @@ SwContentFrame::~SwContentFrame()
{
}
-void SwContentFrame::RegisterToNode( SwContentNode& rNode )
+void SwTextFrame::RegisterToNode(SwTextNode & rNode)
{
+ assert(&rNode != GetRegisteredIn());
rNode.Add( this );
}