diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-08-09 17:25:15 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-19 10:18:24 +0200 |
commit | a0fe386d9d232f5d8a1bb1e1204cb30f5da5b436 (patch) | |
tree | c5d662adfdcc5dcc0482f824af2da250b28fbece /sw/source/core/layout/wsfrm.cxx | |
parent | 09fd75a0125afff17998481443b27c8fd50d3f2e (diff) |
sw_redlinehide_2: when switching show/hide, invalidate Insert redlines
... so that the frames are repainted with/without font color.
Change-Id: I68f105868d262c9d0a88f124c98243a64159aa38
Diffstat (limited to 'sw/source/core/layout/wsfrm.cxx')
-rw-r--r-- | sw/source/core/layout/wsfrm.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index cd2cf78ba8ab..7cb91955b6bf 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -31,6 +31,7 @@ #include <IDocumentSettingAccess.hxx> #include <IDocumentFieldsAccess.hxx> #include <IDocumentRedlineAccess.hxx> +#include <redline.hxx> #include <fesh.hxx> #include <docsh.hxx> #include <ftninfo.hxx> @@ -4451,6 +4452,15 @@ void SwRootFrame::SetHideRedlines(bool const bHideRedlines) AppendAllObjs(rDoc.GetSpzFrameFormats(), this); } + for (auto const pRedline : rDoc.getIDocumentRedlineAccess().GetRedlineTable()) + { // DELETE are handled by the code above; for other types, need to + // trigger repaint of text frames to add/remove the redline color font + if (pRedline->GetType() != nsRedlineType_t::REDLINE_DELETE) + { + pRedline->InvalidateRange(); + } + } + // InvalidateAllContent(SwInvalidateFlags::Size); // ??? TODO what to invalidate? this is the big hammer } |