From ee03f6453e6f11f3db0742b08c53ad2c6b4ebb63 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 25 Feb 2023 21:13:42 +0000 Subject: cid#1521509 Logically dead code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1521507 Logically dead code Change-Id: I1d2c9ee4a4099fadb5da7a6850b4124488e2ebe8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147687 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/uibase/misc/redlndlg.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sw/source/uibase/misc') diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx index 80e35dec095f..304c4d4a3a50 100644 --- a/sw/source/uibase/misc/redlndlg.cxx +++ b/sw/source/uibase/misc/redlndlg.cxx @@ -246,8 +246,6 @@ void SwRedlineAcceptDlg::InitAuthors() SwView *pView = ::GetActiveView(); SwWrtShell* pSh = pView ? pView->GetWrtShellPtr() : nullptr; - if (!pSh) - return; SvxTPFilter *pFilterPage = m_xTabPagesCTRL->GetFilterPage(); @@ -1131,12 +1129,12 @@ IMPL_LINK_NOARG(SwRedlineAcceptDlg, SelectHdl, weld::TreeView&, void) IMPL_LINK_NOARG(SwRedlineAcceptDlg, GotoHdl, Timer *, void) { + m_aSelectTimer.Stop(); + SwWrtShell* pSh = ::GetActiveView()->GetWrtShellPtr(); if (!pSh) return; - m_aSelectTimer.Stop(); - bool bIsNotFormated = false; bool bSel = false; -- cgit