diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-04-10 17:04:01 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-04-10 18:03:51 +0200 |
commit | 3ece9b4ed86c94a803bb728d5a845ea7cb89ed17 (patch) | |
tree | fe2c2761352a6551020e1161692d0bf915b69c56 /sc | |
parent | 0b052272038873727852fbe70a3a549981373d1a (diff) |
coverity#1000602: fix check for null pointer
Change-Id: Iaa48ebe1799960532483812e54aa08c625882388
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfun4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx index 9606212ba573..d2c707022698 100644 --- a/sc/source/ui/view/viewfun4.cxx +++ b/sc/source/ui/view/viewfun4.cxx @@ -760,7 +760,7 @@ bool ScViewFunc::HasBookmarkAtCursor( SvxHyperlinkItem* pContent ) ScDocument* pDoc = GetViewData()->GetDocShell()->GetDocument(); const EditTextObject* pData = pDoc->GetEditText(aPos); - if (pData) + if (!pData) return false; if (!pData->IsFieldObject()) |