summaryrefslogtreecommitdiff
path: root/sw/source/core/layout
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-06-01 20:46:26 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-06-08 21:51:35 +0200
commitba8c14f488a0bf9f1b10b5f1a24a367b8b98caf6 (patch)
tree34bd0fda4b2977a179e5774ac03852f580623e91 /sw/source/core/layout
parenta8b0e93c4271e3574ec8b8705ecf3b34be37d8ab (diff)
sw_redlinehide: convert SwDeletionChecker to GetDep()
Such a lovely class! Change-Id: Id03795b1c62c35829cab093198daf082ca78d174
Diffstat (limited to 'sw/source/core/layout')
-rw-r--r--sw/source/core/layout/frmtool.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 277d155d06aa..6552f45a6e0a 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -3418,6 +3418,17 @@ const SwContentFrame* GetCellContent( const SwLayoutFrame& rCell )
return pContent;
}
+SwDeletionChecker::SwDeletionChecker(const SwFrame* pFrame)
+ : mpFrame( pFrame )
+ , mpRegIn( pFrame
+ ? pFrame->IsTextFrame()
+ // sw_redlinehide: GetDep() may be a member of SwTextFrame!
+ ? static_cast<SwTextFrame const*>(pFrame)->GetTextNodeFirst()
+ : const_cast<SwFrame*>(pFrame)->GetDep()
+ : nullptr )
+{
+}
+
/// Can be used to check if a frame has been deleted
bool SwDeletionChecker::HasBeenDeleted()
{