diff options
Diffstat (limited to 'sw/source/uibase/shells/textsh1.cxx')
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index cb4017cf26f9..010e14ebaedc 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -770,8 +770,8 @@ void SwTextShell::Execute(SfxRequest &rReq) OUString sFormula(static_cast<const SfxStringItem*>(pItem)->GetValue()); SwFieldMgr aFieldMgr; rWrtSh.StartAllAction(); - bool bDelSel; - if( (bDelSel = rWrtSh.HasSelection()) ) + bool bDelSel = rWrtSh.HasSelection(); + if( bDelSel ) { rWrtSh.StartUndo( UNDO_START ); rWrtSh.DelRight(); |