summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/edtwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/edtwin.cxx')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 355629a7f051..79570a9b5ee0 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -1175,14 +1175,7 @@ void SwEditWin::ChangeFly( sal_uInt8 nDir, bool bWeb )
bool bSetPos = (RndStdIds::FLY_AS_CHAR != eAnchorId);
if(bSetPos && bWeb)
{
- if (RndStdIds::FLY_AT_PAGE != eAnchorId)
- {
- bSetPos = false;
- }
- else
- {
- bSetPos = true;
- }
+ bSetPos = RndStdIds::FLY_AT_PAGE == eAnchorId;
}
if( bSetPos )
rSh.SetFlyPos( aTmp.Pos() );
@@ -1822,10 +1815,7 @@ KEYINPUT_CHECKTABLE:
goto KEYINPUT_CHECKTABLE_INSDEL;
KEYINPUT_CHECKTABLE_INSDEL:
- if( rSh.IsTableMode() || !rSh.GetTableFormat() ||
- !m_bTableInsDelMode ||
- false /* table protected */
- )
+ if( rSh.IsTableMode() || !rSh.GetTableFormat() || !m_bTableInsDelMode )
{
const SelectionType nSelectionType = rSh.GetSelectionType();