summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2018-10-21 22:55:53 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-10-22 10:03:37 +0200
commit8a764bc0df140f72a5d552db6cb6623d02d5c11f (patch)
treecbd2f49c0efc35b7dd582597d0e73880bae8e343
parent5d41d9fefcdf18d431c22b7c7ce9aa56ee96016a (diff)
tdf#120703 (PVS): Recurring check.
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx11
1 files changed, 4 insertions, 7 deletions
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;