summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-12-20 15:00:41 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-12-20 15:00:41 +0100
commit0d8170edda471767ce3024dbfc6f93ac0fd87514 (patch)
tree42c4c7b6495dc56af41f85a5632240da34a0e554
parent5f55edb95ea874e50e5a60623b518bf9e7468ccf (diff)
sw_redlinehide: SwTextNode::GetExpandText() HideDeletions
Always enable this when the layout hides redlines (not sure why it wasn't done like this before...). Change-Id: Icddf8a23352565c0091a79eb64628054d0028928
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 2db52f511bbc..e12765a292f9 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -3399,6 +3399,10 @@ OUString SwTextNode::GetExpandText(SwRootFrame const*const pLayout,
{
ExpandMode eMode = ExpandMode::ExpandFields | eAdditionalMode;
+ if (pLayout && pLayout->IsHideRedlines())
+ {
+ eMode |= ExpandMode::HideDeletions;
+ }
ModelToViewHelper aConversionMap(*this, pLayout, eMode);
const OUString aExpandText = aConversionMap.getViewText();