summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-11-04 23:01:17 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-11-04 23:01:17 +0400
commit9b94d385f94562049bf93f2fc0dd0558d6a56dd1 (patch)
tree94f99d981695301f17c78e0d097a562162cfae13 /sd
parentbe35cbe0d86b416414972754af7dfef9c21bc3b0 (diff)
cppcheck: avoid possible null pointer dereferences
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/sdview2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx
index 68e9a1f6f297..b1a87b1da2e2 100644
--- a/sd/source/ui/view/sdview2.cxx
+++ b/sd/source/ui/view/sdview2.cxx
@@ -466,10 +466,10 @@ void View::DragFinished( sal_Int8 nDropAction )
nm--;
SdrMark* pM=mpDragSrcMarkList->GetMark(nm);
SdrObject* pObj=pM->GetMarkedSdrObj();
- sal_uInt32 nOrdNum=pObj->GetOrdNumDirect();
if( pObj && pObj->GetPage() )
{
+ sal_uInt32 nOrdNum=pObj->GetOrdNumDirect();
#ifdef DBG_UTIL
SdrObject* pChkObj =
#endif