From 8a764bc0df140f72a5d552db6cb6623d02d5c11f Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Sun, 21 Oct 2018 22:55:53 +0200 Subject: tdf#120703 (PVS): Recurring check. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit V571 The 'SwKeyState::KeyToView != eFlyState' condition was already verified in line 1723. Change-Id: I4fb5d7a5e50822985ca753706d4cdb1693439118 Reviewed-on: https://gerrit.libreoffice.org/62161 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/uibase/docvw/edtwin.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sw') diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 9bc9fe208798..f9bb7443c3b7 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -1718,13 +1718,10 @@ void SwEditWin::KeyInput(const KeyEvent &rKEvt) KEYINPUT_CHECKTABLE: if( rSh.IsTableMode() || !rSh.GetTableFormat() ) { - if(SwKeyState::KeyToView != eFlyState) - { - if(!pFlyFormat && SwKeyState::KeyToView != eFlyState && - (rSh.GetSelectionType() & (SelectionType::DrawObject|SelectionType::DbForm)) && - rSh.GetDrawView()->AreObjectsMarked()) - eKeyState = SwKeyState::Draw_Change; - } + if(!pFlyFormat && SwKeyState::KeyToView != eFlyState && + (rSh.GetSelectionType() & (SelectionType::DrawObject|SelectionType::DbForm)) && + rSh.GetDrawView()->AreObjectsMarked()) + eKeyState = SwKeyState::Draw_Change; if( pFlyFormat ) eKeyState = eFlyState; -- cgit