diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-07 14:44:21 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-08 21:51:26 +0200 |
commit | 44b64eeec146a733d0e254ac7a5b295e4390815d (patch) | |
tree | 68919a2b0f1242c59ffb4d52397783b1e978f153 /sw/source/core/layout | |
parent | 7d1e3abe1e7378f0fb8d2881f3a075de1b9dc7cf (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')
-rw-r--r-- | sw/source/core/layout/ssfrm.cxx | 3 |
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 ); } |