summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-07-27 16:04:48 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-09-19 10:18:21 +0200
commitfc31e80dc2f14886e844d382ca02899663819379 (patch)
tree38d59228e297d579b2cc3646f3df1b4382963ce3 /sw/source/uibase
parentb7e4feb9d985750f04b53e630fa68ab471743a14 (diff)
sw_redlinehide_2: SwView::GetState must be in sync with Execute
Because FN_REDLINE_SHOW is TOGGLE so it reads the existing state to invert it. Change-Id: I43053c28085722c869f1e8b0cb989d0956c2e00b
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/uiview/viewstat.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx
index 04e344d0b10e..437fb12b11f0 100644
--- a/sw/source/uibase/uiview/viewstat.cxx
+++ b/sw/source/uibase/uiview/viewstat.cxx
@@ -56,6 +56,7 @@
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <svl/visitem.hxx>
#include <redline.hxx>
+#include <rootfrm.hxx>
#include <docary.hxx>
#include <cmdid.h>
@@ -280,7 +281,12 @@ void SwView::GetState(SfxItemSet &rSet)
break;
case FN_REDLINE_SHOW:
{
- rSet.Put( SfxBoolItem( nWhich, IDocumentRedlineAccess::IsShowChanges(m_pWrtShell->GetRedlineFlags()) ));
+ if (getenv("SW_REDLINEHIDE")) // TODO...
+ {
+ rSet.Put(SfxBoolItem(nWhich, !m_pWrtShell->GetLayout()->IsHideRedlines()));
+ }
+ else
+ rSet.Put( SfxBoolItem( nWhich, IDocumentRedlineAccess::IsShowChanges(m_pWrtShell->GetRedlineFlags()) ));
}
break;
case SID_AVMEDIA_PLAYER :