summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-18 10:29:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-18 10:31:45 +0000
commit55ac75aab9c0368b1a46dd95d452ba37776fa44b (patch)
treefeddb311d01f00aa47370a088287bb93a335db19 /sw
parent71f33636dae11f3a53740ce73437255ad53641ed (diff)
cppcheck: same expression
the same comment and expression here is duplicated further down, except this time without the redundant repeat test Change-Id: Ife4bebf181e7a6011137beaeec2b69f5cdcfe908
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/docvw/edtwin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 723602b49612..688edfe69030 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -3318,8 +3318,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
// if the cursor position was corrected or if a Fly
// was selected in ReadOnlyMode, no word selection.
- if ( !bValidCrsrPos ||
- (rSh.IsFrmSelected() && rSh.IsFrmSelected() ))
+ if ( !bValidCrsrPos || rSh.IsFrmSelected() )
return;
SwField *pFld;