diff options
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index f2cbaa68c93f..e5a7fa8b95c7 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -139,6 +139,7 @@ #include <vcl/settings.hxx> #include <i18nutil/searchopt.hxx> #include <paratr.hxx> +#include <rootfrm.hxx> #include <memory> @@ -638,7 +639,15 @@ void SwView::Execute(SfxRequest &rReq) if( static_cast<const SfxBoolItem*>(pItem)->GetValue() ) nMode |= RedlineFlags::ShowDelete; - m_pWrtShell->SetRedlineFlagsAndCheckInsMode( nMode ); + if (getenv("SW_REDLINEHIDE")) // TODO... + { + m_pWrtShell->GetLayout()->SetHideRedlines( + !static_cast<const SfxBoolItem*>(pItem)->GetValue()); + if (m_pWrtShell->IsRedlineOn()) + m_pWrtShell->SetInsMode(); + } + else + m_pWrtShell->SetRedlineFlagsAndCheckInsMode( nMode ); } break; case FN_MAILMERGE_SENDMAIL_CHILDWINDOW: |