summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-04 11:04:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-04 12:34:13 +0100
commit051d45a59d9e43634e152b8f4f0bf0193561db12 (patch)
tree0e21bb6063a5f1d4818e4d7563d8ddd4bb80b0b4 /sd
parentc27a31710813ef0d44f8c1059177104c6996f2d9 (diff)
coverity#1213293 Dereference before null check
Change-Id: If2dd3cb1c7e18bf0274551950bc33f7521e0f8e1
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/Outliner.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index ba7d1a0e67da..c8e262a61125 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -1364,8 +1364,7 @@ void Outliner::EnterEditMode (bool bGrabFocus)
mpView->UnmarkAllObj (pPV);
mpView->MarkObj (mpTextObj, pPV);
- if( mpTextObj )
- mpTextObj->setActiveText( mnText );
+ mpTextObj->setActiveText( mnText );
// Turn on the edit mode for the text object.
mpView->SdrBeginTextEdit(mpTextObj, pPV, mpWindow, true, this, pOutlinerView, true, true, bGrabFocus);