summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-22 16:29:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-22 16:29:42 +0000
commit3cd160957c236d21ce9608bdc64d420a5f51ce8e (patch)
tree6e42deb3320d82dce2770f9e8662c944017cf9cb /sd
parent5a7e3f67f15d6eac1cf7319f57eafbbce321e6f7 (diff)
coverity#705876 Dereference before null check
Change-Id: If18649ff83b7127054171f59965a66ddb27b7363
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviews4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx
index 0141322e8341..14cffd325869 100644
--- a/sd/source/ui/view/drviews4.cxx
+++ b/sd/source/ui/view/drviews4.cxx
@@ -340,7 +340,7 @@ void DrawViewShell::MouseMove(const MouseEvent& rMEvt, ::sd::Window* pWin)
// Since the next MouseMove may execute a IsSolidDraggingNow() in
// SdrCreateView::MovCreateObj and there the ApplicationBackgroundColor
// is needed it is necessary to set it here.
- if(mpDrawView!=NULL && GetDoc()!=NULL)
+ if (GetDoc())
{
svtools::ColorConfig aColorConfig;
Color aFillColor;