summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-18 10:59:46 +0200
committerNoel Grandin <noel@peralex.com>2014-02-19 09:42:16 +0200
commit5a3290af0b4d0390190bbb00312824c0b9495cec (patch)
treea868659a3892b431cada2307ed6484b92e4ce660
parentde2270ffc13239b41bb21ccb266181b42e82be71 (diff)
cid#736793 dereference before null check
Change-Id: I389b758cb2ec0ab71706e165d0d382dd08396c3b
-rw-r--r--sc/source/ui/view/viewfun3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index 20f12c4c51d6..e77b3043038d 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -1384,7 +1384,7 @@ bool ScViewFunc::PasteFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc,
if ( nFlags & IDF_OBJECTS )
{
ScModelObj* pModelObj = ( pDocSh ? ScModelObj::getImplementation( pDocSh->GetModel() ) : NULL );
- if ( pDoc && pPage && pModelObj )
+ if ( pPage && pModelObj )
{
bool bSameDoc = ( rClipParam.getSourceDocID() == pDoc->GetDocumentID() );
const ScRangeListVector& rProtectedChartRangesVector( rClipParam.maProtectedChartRangesVector );