summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-11-02 14:29:23 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-10 19:47:00 +0100
commitffe2607d5aedde495eb14d881b352761aa0233f6 (patch)
treee6c9ec79e1e26846242374330f25fc079eadf098
parent9a1830d494b2c899dc59d7e63a6acbcc6aee373e (diff)
sw_redlinehide_3: SetHideRedlines() must iterate doc when Show->Hide
Something must call AddToListRLHidden() on all the nodes. Change-Id: Ibe23f499372b7fd07a2894ee3f90684d53d67aef
-rw-r--r--sw/source/core/layout/wsfrm.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index cfb9c0853934..eb8a0fa12368 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -4437,7 +4437,8 @@ void SwRootFrame::SetHideRedlines(bool const bHideRedlines)
}
mbHideRedlines = bHideRedlines;
SwDoc & rDoc(*GetFormat()->GetDoc());
- if (rDoc.getIDocumentRedlineAccess().GetRedlineTable().empty())
+ if (!bHideRedlines // Show->Hide must init hidden number trees
+ && rDoc.getIDocumentRedlineAccess().GetRedlineTable().empty())
{
return;
}