summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-06-14 12:17:55 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-06-14 12:17:55 +0200
commitb226928c6d5d094359b970b64a063b243d4fc84c (patch)
tree3ec0329c0f69fc4e9b57210135d51c2006853388 /sd
parent01a189abcd9a4ca472a74b3b2c000c9338fc2c91 (diff)
cppcheck: redundantCondition [part1]
Change-Id: I21c5340e7b5ec09248b08aa76f43acf883c56cd8
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/annotations/annotationwindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx
index f226d86505ad..bf7fb8a41efe 100644
--- a/sd/source/ui/annotations/annotationwindow.cxx
+++ b/sd/source/ui/annotations/annotationwindow.cxx
@@ -175,7 +175,7 @@ void AnnotationTextWindow::KeyInput( const KeyEvent& rKeyEvt )
if ( !( (nKey == KEY_Z || nKey == KEY_Y) && rKeyCode.IsMod1()) )
{
bool bIsProtected = mpAnnotationWindow->IsProtected();
- if (!bIsProtected || (bIsProtected && !EditEngine::DoesKeyChangeText(rKeyEvt)) )
+ if (!bIsProtected || !EditEngine::DoesKeyChangeText(rKeyEvt) )
bDone = mpOutlinerView->PostKeyEvent( rKeyEvt );
}