diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-19 16:39:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-19 16:41:00 +0000 |
commit | 755209d88073fd497b884b8de1348ec75c2df7eb (patch) | |
tree | 8de103dde4ec1979f3c5d235186b6f9372a765f3 /sc/source/ui/view/gridwin.cxx | |
parent | 42fbe6391896422a13807a751d4ab03a46275656 (diff) |
Resolves: rhbz#1165444 abrt crash with NULL pView
Change-Id: I37f02f16209f274cf0358defba6bfa109948990f
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index e8defd1e4e88..7b27f0caae98 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -5183,12 +5183,9 @@ bool ScGridWindow::GetEditUrl( const Point& rPos, ScInputHandler* pInputHdl = NULL; if (pViewSh) pInputHdl = pViewSh->GetInputHandler(); - - if (pInputHdl && pInputHdl->IsInputMode()) - { - EditView* pView = pInputHdl->GetTableView(); + EditView* pView = (pInputHdl && pInputHdl->IsInputMode()) ? pInputHdl->GetTableView() : NULL; + if (pView) return extractURLInfo(pView->GetFieldUnderMousePointer(), pName, pUrl, pTarget); - } //! nPosX/Y mit uebergeben? SCsCOL nPosX; |