summaryrefslogtreecommitdiff
path: root/sw
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-15 15:10:04 +0100
commit2d89cd4a1dc3c1f4193475618f222896f9a01207 (patch)
tree9bfb1f07ba5215a0a220df72fced3b9cc23226e0 /sw
parent10aab2a97c3959e50b831a7530cfea7e82c405e9 (diff)
sw_redlinehide_3: SetHideRedlines() must iterate doc when Show->Hide
Something must call AddToListRLHidden() on all the nodes. Change-Id: Ibe23f499372b7fd07a2894ee3f90684d53d67aef
Diffstat (limited to 'sw')
-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;
}