summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-11-17 12:43:03 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-11-17 22:19:15 +0100
commitc33c0a16ec781926b752f0589e6eca6f4e63a1e3 (patch)
tree2b1d56ac8aa7ad09854b2eb6e778a745e1e47f79
parent8d380d1fe9b6689c9b9b4e8fe95105e0b8831e8f (diff)
sw_fieldmarkhide: replace IsHideRedlines() with HasMergedParas()
... in wsfrm.cxx Change-Id: Iaa552f2527d47f475165a3f9da073052fc76ac51 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105983 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r--sw/source/core/layout/wsfrm.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index ae9242cbd13e..438eaaef79fd 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -4322,7 +4322,7 @@ static void UnHideRedlines(SwRootFrame & rLayout,
auto eMode(sw::FrameMode::Existing);
for (SwTextFrame * pFrame : frames)
{
- if (rLayout.IsHideRedlines())
+ if (rLayout.HasMergedParas())
{
assert(!pFrame->GetMergedPara() ||
!rNode.IsCreateFrameWhenHidingRedlines());
@@ -4435,7 +4435,7 @@ static void UnHideRedlines(SwRootFrame & rLayout,
}
if (!rNode.IsCreateFrameWhenHidingRedlines())
{
- if (rLayout.IsHideRedlines())
+ if (rLayout.HasMergedParas())
{
if (rNode.IsContentNode())
{
@@ -4548,14 +4548,14 @@ static void UnHide(SwRootFrame & rLayout)
std::set<sal_uLong> skippedFlys;
UnHideRedlinesExtras(rLayout, rNodes, rNodes.GetEndOfAutotext(),
// when un-hiding, delay all fly frame creation to AppendAllObjs below
- rLayout.IsHideRedlines() ? &skippedFlys : nullptr);
+ rLayout.HasMergedParas() ? &skippedFlys : nullptr);
// Footnotes are created automatically (after invalidation etc.) by
// ConnectFootnote(), but need to be deleted manually. Footnotes do not
// occur in flys or headers/footers.
UnHideRedlinesExtras(rLayout, rNodes, rNodes.GetEndOfInserts(), nullptr);
UnHideRedlines(rLayout, rNodes, rNodes.GetEndOfContent(), nullptr);
- if (!rLayout.IsHideRedlines())
+ if (!rLayout.HasMergedParas())
{ // create all previously hidden flys at once:
// * Flys on first node of pre-existing merged frames that are hidden
// (in delete redline), to be added to the existing frame
@@ -4608,7 +4608,7 @@ static void UnHide(SwRootFrame & rLayout)
// update SwPostItMgr / notes in the margin
// note: as long as all shells share layout, broadcast to all shells!
- rDoc.GetDocShell()->Broadcast( SwFormatFieldHint(nullptr, rLayout.IsHideRedlines()
+ rDoc.GetDocShell()->Broadcast( SwFormatFieldHint(nullptr, rLayout.HasMergedParas()
? SwFormatFieldHintWhich::REMOVED
: SwFormatFieldHintWhich::INSERTED) );